Rename liblttngctl.h to lttng.h
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 3 May 2011 19:59:52 +0000 (15:59 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 3 May 2011 19:59:52 +0000 (15:59 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
include/lttng/liblttngctl.h [deleted file]
include/lttng/lttng.h [new file with mode: 0644]
liblttngctl/liblttngctl.c
ltt-sessiond/main.c
ltt-sessiond/session.c
ltt-sessiond/session.h
lttng/lttng.c

diff --git a/include/lttng/liblttngctl.h b/include/lttng/liblttngctl.h
deleted file mode 100644 (file)
index 71c5e82..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
- */
-
-#ifndef _LIBLTTNGCTL_H
-#define _LIBLTTNGCTL_H
-
-#include <limits.h>
-#include <uuid/uuid.h>
-
-/* Default unix group name for tracing.
- */
-#define DEFAULT_TRACING_GROUP "tracing"
-
-/* Environment variable to set session daemon
- * binary path.
- */
-#define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
-
-/* From libuuid
- */
-#define UUID_STR_LEN 37
-
-/* Trace type for lttng_trace.
- */
-enum lttng_trace_type {
-       KERNEL, USERSPACE,
-};
-
-/* Simple structure representing a session.
- */
-struct lttng_session {
-       char name[NAME_MAX];
-       char uuid[UUID_STR_LEN];
-};
-
-/* Simple trace representation.
- */
-struct lttng_trace {
-       char name[NAME_MAX];
-       pid_t pid;
-       enum lttng_trace_type type;
-};
-
-extern int lttng_create_session(char *name, uuid_t *session_id);
-extern int lttng_destroy_session(uuid_t *uuid);
-extern int lttng_connect_sessiond(void);
-extern int lttng_disconnect_sessiond(void);
-extern int lttng_set_tracing_group(const char *name);
-extern int lttng_check_session_daemon(void);
-extern const char *lttng_get_readable_code(int code);
-extern int lttng_ust_list_apps(pid_t **pids);
-extern int lttng_list_sessions(struct lttng_session **sessions);
-extern int lttng_list_traces(uuid_t *uuid, struct lttng_trace **traces);
-extern void lttng_set_current_session_uuid(char *uuid);
-extern int lttng_ust_create_trace(pid_t pid);
-extern int lttng_ust_start_trace(pid_t pid);
-extern int lttng_ust_stop_trace(pid_t pid);
-
-#endif /* _LIBLTTNGCTL_H */
diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h
new file mode 100644 (file)
index 0000000..71c5e82
--- /dev/null
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#ifndef _LIBLTTNGCTL_H
+#define _LIBLTTNGCTL_H
+
+#include <limits.h>
+#include <uuid/uuid.h>
+
+/* Default unix group name for tracing.
+ */
+#define DEFAULT_TRACING_GROUP "tracing"
+
+/* Environment variable to set session daemon
+ * binary path.
+ */
+#define LTTNG_SESSIOND_PATH_ENV "LTTNG_SESSIOND_PATH"
+
+/* From libuuid
+ */
+#define UUID_STR_LEN 37
+
+/* Trace type for lttng_trace.
+ */
+enum lttng_trace_type {
+       KERNEL, USERSPACE,
+};
+
+/* Simple structure representing a session.
+ */
+struct lttng_session {
+       char name[NAME_MAX];
+       char uuid[UUID_STR_LEN];
+};
+
+/* Simple trace representation.
+ */
+struct lttng_trace {
+       char name[NAME_MAX];
+       pid_t pid;
+       enum lttng_trace_type type;
+};
+
+extern int lttng_create_session(char *name, uuid_t *session_id);
+extern int lttng_destroy_session(uuid_t *uuid);
+extern int lttng_connect_sessiond(void);
+extern int lttng_disconnect_sessiond(void);
+extern int lttng_set_tracing_group(const char *name);
+extern int lttng_check_session_daemon(void);
+extern const char *lttng_get_readable_code(int code);
+extern int lttng_ust_list_apps(pid_t **pids);
+extern int lttng_list_sessions(struct lttng_session **sessions);
+extern int lttng_list_traces(uuid_t *uuid, struct lttng_trace **traces);
+extern void lttng_set_current_session_uuid(char *uuid);
+extern int lttng_ust_create_trace(pid_t pid);
+extern int lttng_ust_start_trace(pid_t pid);
+extern int lttng_ust_stop_trace(pid_t pid);
+
+#endif /* _LIBLTTNGCTL_H */
index bd02a13b2c451fad17d6b0612472bba7b5652023..76bdf5ffde2ff29b43940f3226f51fc8d5a10329 100644 (file)
@@ -24,7 +24,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <lttng/liblttngctl.h>
+#include <lttng/lttng.h>
 
 #include "liblttsessiondcomm.h"
 #include "lttngerr.h"
index 150f211fb825a44e1e614a3222744d7edf51a4bc..2fd6222999faeaae1833e4acb8e53f0c79d2e1c1 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <urcu/list.h>         /* URCU list library (-lurcu) */
 #include <ust/ustctl.h>                /* UST control lib (-lust) */
-#include <lttng/liblttngctl.h>
+#include <lttng/lttng.h>
 
 #include "liblttsessiondcomm.h"
 #include "ltt-sessiond.h"
index bf5f618a8ef34a7c7209806671ab7ed5feafb425..54e19669efd9e78c48578b0207d660f2146cbce4 100644 (file)
  */
 
 #define _GNU_SOURCE
-#include <lttng/liblttngctl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <urcu/list.h>
-#include <uuid/uuid.h>
 
 #include "lttngerr.h"
 #include "session.h"
index 00e8ef1e7b230e3ae2f62c97dfd6593c94f44c03..4f58e9d9f77210b83c5622f72073673d10aa0454 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef _LTT_SESSION_H
 #define _LTT_SESSION_H
 
-#include <lttng/liblttngctl.h>
+#include <lttng/lttng.h>
 #include <uuid/uuid.h>
 
 /* Global session list */
index f6cad42434e2f718a1a8077a4823866998a7acfd..a5569c9af3186e7b9683ee871b32dbb73beee96e 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
-#include <lttng/liblttngctl.h>
+#include <lttng/lttng.h>
 
 #include "lttng.h"
 #include "lttngerr.h"
This page took 0.028546 seconds and 4 git commands to generate.