Fix errors due to lttng.h cleanup
authorDavid Goulet <david.goulet@polymtl.ca>
Fri, 27 May 2011 19:56:40 +0000 (15:56 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Fri, 27 May 2011 19:56:40 +0000 (15:56 -0400)
Rename lttng/lttng.h to options.h in order to avoid confusion with the
public lttng.h header file.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
liblttngctl/liblttngctl.c
ltt-sessiond/main.c
lttng/lttng.c
lttng/lttng.h [deleted file]
lttng/options.c
lttng/options.h [new file with mode: 0644]

index ab44efe90f5ce825d1443d3911e499d6b01a3e22..c27ce092825595692b91e4552b250a190dcf486f 100644 (file)
@@ -588,5 +588,5 @@ end:
 static void __attribute__((constructor)) init()
 {
        /* Set default session group */
-       lttng_set_tracing_group(DEFAULT_TRACING_GROUP);
+       lttng_set_tracing_group(LTTNG_DEFAULT_TRACING_GROUP);
 }
index 722402311586b7f7341e229939608d448ddfe502..4b2fb52c2dd256e5a68809af7107d1dc78631c29 100644 (file)
@@ -55,7 +55,7 @@
 
 /* Const values */
 const char default_home_dir[] = DEFAULT_HOME_DIR;
-const char default_tracing_group[] = DEFAULT_TRACING_GROUP;
+const char default_tracing_group[] = LTTNG_DEFAULT_TRACING_GROUP;
 const char default_ust_sock_dir[] = DEFAULT_UST_SOCK_DIR;
 const char default_global_apps_pipe[] = DEFAULT_GLOBAL_APPS_PIPE;
 
index 5319c13d3dd9e33d7f3cddc70f1adf739f89d518..ab89952740b1beda71a7d233a759db253f773c3e 100644 (file)
@@ -32,8 +32,8 @@
 
 #include <lttng/lttng.h>
 
-#include "lttng.h"
 #include "lttngerr.h"
+#include "options.h"
 
 /* Variables */
 static char *progname;
diff --git a/lttng/lttng.h b/lttng/lttng.h
deleted file mode 100644 (file)
index efaed09..0000000
+++ /dev/null
@@ -1,50 +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 _LTTNG_H
-#define _LTTNG_H
-
-/* Function prototypes */
-int parse_args(int argc, const char **argv);
-void clean_exit(int code);
-
-/* Command line options */
-extern int opt_trace_kernel;
-extern int opt_verbose;
-extern int opt_quiet;
-extern char *opt_tracing_group;
-extern char *opt_session_uuid;
-extern char *opt_sessiond_path;
-extern char *opt_session_name;
-extern char *opt_event_list;
-extern char *opt_trace_name;
-extern int opt_destroy_trace;
-extern int opt_enable_event;
-extern int opt_disable_event;
-extern int opt_destroy_session;
-extern int opt_create_session;
-extern int opt_kern_create_channel;
-extern int opt_list_apps;
-extern int opt_no_sessiond;
-extern int opt_list_session;
-extern int opt_list_traces;
-extern int opt_create_trace;
-extern int opt_start_trace;
-extern int opt_stop_trace;
-extern pid_t opt_trace_pid;
-
-#endif /* _LTTNG_H */
index bb3ecbb0cdaf5e6014b74d7583b96c0532d0b8ab..643ea5194cd2a8f511907d07ec44a33b1f9ad722 100644 (file)
@@ -19,7 +19,7 @@
 #include <popt.h>
 #include <stdlib.h>
 
-#include "lttng.h"
+#include "options.h"
 
 /* Option variables */
 char *opt_event_list;
diff --git a/lttng/options.h b/lttng/options.h
new file mode 100644 (file)
index 0000000..d5c0b53
--- /dev/null
@@ -0,0 +1,50 @@
+/* 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 _LTTNG_OPTIONS_H
+#define _LTTNG_OPTIONS_H_
+
+/* Function prototypes */
+int parse_args(int argc, const char **argv);
+void clean_exit(int code);
+
+/* Command line options */
+extern int opt_trace_kernel;
+extern int opt_verbose;
+extern int opt_quiet;
+extern char *opt_tracing_group;
+extern char *opt_session_uuid;
+extern char *opt_sessiond_path;
+extern char *opt_session_name;
+extern char *opt_event_list;
+extern char *opt_trace_name;
+extern int opt_destroy_trace;
+extern int opt_enable_event;
+extern int opt_disable_event;
+extern int opt_destroy_session;
+extern int opt_create_session;
+extern int opt_kern_create_channel;
+extern int opt_list_apps;
+extern int opt_no_sessiond;
+extern int opt_list_session;
+extern int opt_list_traces;
+extern int opt_create_trace;
+extern int opt_start_trace;
+extern int opt_stop_trace;
+extern pid_t opt_trace_pid;
+
+#endif /* _LTTNG_OPTIONS_H */
This page took 0.032547 seconds and 5 git commands to generate.