Fix: rename config internal header to abi
authorDavid Goulet <dgoulet@efficios.com>
Mon, 17 Mar 2014 15:33:10 +0000 (11:33 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 17 Mar 2014 15:33:10 +0000 (11:33 -0400)
Allow config ABI to be visible to the internal code.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/save.c
src/common/config/config-session-abi.h [new file with mode: 0644]
src/common/config/config-session-internal.h [deleted file]
src/common/config/config.c
src/common/config/config.h

index fe5461cb1e34f30fbd43b9c3b3018e28c6adc783..812137f93f40b1257f6b2973a993f35af6e763cf 100644 (file)
@@ -25,7 +25,6 @@
 #include <common/defaults.h>
 #include <common/error.h>
 #include <common/config/config.h>
-#include <common/config/config-session-internal.h>
 #include <common/utils.h>
 #include <common/runas.h>
 #include <lttng/save-internal.h>
diff --git a/src/common/config/config-session-abi.h b/src/common/config/config-session-abi.h
new file mode 100644 (file)
index 0000000..3c51883
--- /dev/null
@@ -0,0 +1,110 @@
+/*
+ * Copyright (C) 2014 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License, version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * 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., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef CONFIG_SESSION_INTERNAL_H
+#define CONFIG_SESSION_INTERNAL_H
+
+const char * const config_element_channel;
+const char * const config_element_channels;
+const char * const config_element_domain;
+const char * const config_element_domains;
+const char * const config_element_event;
+const char * const config_element_events;
+const char * const config_element_context;
+const char * const config_element_contexts;
+const char * const config_element_attributes;
+const char * const config_element_exclusion;
+const char * const config_element_exclusions;
+const char * const config_element_function_attributes;
+const char * const config_element_probe_attributes;
+const char * const config_element_symbol_name;
+const char * const config_element_address;
+const char * const config_element_offset;
+const char * const config_element_name;
+const char * const config_element_enabled;
+const char * const config_element_overwrite_mode;
+const char * const config_element_subbuf_size;
+const char * const config_element_num_subbuf;
+const char * const config_element_switch_timer_interval;
+const char * const config_element_read_timer_interval;
+const char * const config_element_output;
+const char * const config_element_output_type;
+const char * const config_element_tracefile_size;
+const char * const config_element_tracefile_count;
+const char * const config_element_live_timer_interval;
+const char * const config_element_type;
+const char * const config_element_buffer_type;
+const char * const config_element_session;
+const char * const config_element_sessions;
+const char * const config_element_perf;
+const char * const config_element_config;
+const char * const config_element_started;
+const char * const config_element_snapshot_mode;
+const char * const config_element_loglevel;
+const char * const config_element_loglevel_type;
+const char * const config_element_filter;
+const char * const config_element_snapshot_outputs;
+const char * const config_element_consumer_output;
+const char * const config_element_destination;
+const char * const config_element_path;
+const char * const config_element_net_output;
+const char * const config_element_control_uri;
+const char * const config_element_data_uri;
+const char * const config_element_max_size;
+
+const char * const config_domain_type_kernel;
+const char * const config_domain_type_ust;
+const char * const config_domain_type_jul;
+
+const char * const config_buffer_type_per_pid;
+const char * const config_buffer_type_per_uid;
+const char * const config_buffer_type_global;
+
+const char * const config_overwrite_mode_discard;
+const char * const config_overwrite_mode_overwrite;
+
+const char * const config_output_type_splice;
+const char * const config_output_type_mmap;
+
+const char * const config_loglevel_type_all;
+const char * const config_loglevel_type_range;
+const char * const config_loglevel_type_single;
+
+const char * const config_event_type_all;
+const char * const config_event_type_tracepoint;
+const char * const config_event_type_probe;
+const char * const config_event_type_function;
+const char * const config_event_type_function_entry;
+const char * const config_event_type_noop;
+const char * const config_event_type_syscall;
+const char * const config_event_type_kprobe;
+const char * const config_event_type_kretprobe;
+
+const char * const config_event_context_pid;
+const char * const config_event_context_procname;
+const char * const config_event_context_prio;
+const char * const config_event_context_nice;
+const char * const config_event_context_vpid;
+const char * const config_event_context_tid;
+const char * const config_event_context_vtid;
+const char * const config_event_context_ppid;
+const char * const config_event_context_vppid;
+const char * const config_event_context_pthread_id;
+const char * const config_event_context_hostname;
+const char * const config_event_context_ip;
+
+#endif /* CONFIG_SESSION_INTERNAL_H */
diff --git a/src/common/config/config-session-internal.h b/src/common/config/config-session-internal.h
deleted file mode 100644 (file)
index 3c51883..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright (C) 2014 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License, version 2 only, as
- * published by the Free Software Foundation.
- *
- * 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., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef CONFIG_SESSION_INTERNAL_H
-#define CONFIG_SESSION_INTERNAL_H
-
-const char * const config_element_channel;
-const char * const config_element_channels;
-const char * const config_element_domain;
-const char * const config_element_domains;
-const char * const config_element_event;
-const char * const config_element_events;
-const char * const config_element_context;
-const char * const config_element_contexts;
-const char * const config_element_attributes;
-const char * const config_element_exclusion;
-const char * const config_element_exclusions;
-const char * const config_element_function_attributes;
-const char * const config_element_probe_attributes;
-const char * const config_element_symbol_name;
-const char * const config_element_address;
-const char * const config_element_offset;
-const char * const config_element_name;
-const char * const config_element_enabled;
-const char * const config_element_overwrite_mode;
-const char * const config_element_subbuf_size;
-const char * const config_element_num_subbuf;
-const char * const config_element_switch_timer_interval;
-const char * const config_element_read_timer_interval;
-const char * const config_element_output;
-const char * const config_element_output_type;
-const char * const config_element_tracefile_size;
-const char * const config_element_tracefile_count;
-const char * const config_element_live_timer_interval;
-const char * const config_element_type;
-const char * const config_element_buffer_type;
-const char * const config_element_session;
-const char * const config_element_sessions;
-const char * const config_element_perf;
-const char * const config_element_config;
-const char * const config_element_started;
-const char * const config_element_snapshot_mode;
-const char * const config_element_loglevel;
-const char * const config_element_loglevel_type;
-const char * const config_element_filter;
-const char * const config_element_snapshot_outputs;
-const char * const config_element_consumer_output;
-const char * const config_element_destination;
-const char * const config_element_path;
-const char * const config_element_net_output;
-const char * const config_element_control_uri;
-const char * const config_element_data_uri;
-const char * const config_element_max_size;
-
-const char * const config_domain_type_kernel;
-const char * const config_domain_type_ust;
-const char * const config_domain_type_jul;
-
-const char * const config_buffer_type_per_pid;
-const char * const config_buffer_type_per_uid;
-const char * const config_buffer_type_global;
-
-const char * const config_overwrite_mode_discard;
-const char * const config_overwrite_mode_overwrite;
-
-const char * const config_output_type_splice;
-const char * const config_output_type_mmap;
-
-const char * const config_loglevel_type_all;
-const char * const config_loglevel_type_range;
-const char * const config_loglevel_type_single;
-
-const char * const config_event_type_all;
-const char * const config_event_type_tracepoint;
-const char * const config_event_type_probe;
-const char * const config_event_type_function;
-const char * const config_event_type_function_entry;
-const char * const config_event_type_noop;
-const char * const config_event_type_syscall;
-const char * const config_event_type_kprobe;
-const char * const config_event_type_kretprobe;
-
-const char * const config_event_context_pid;
-const char * const config_event_context_procname;
-const char * const config_event_context_prio;
-const char * const config_event_context_nice;
-const char * const config_event_context_vpid;
-const char * const config_event_context_tid;
-const char * const config_event_context_vtid;
-const char * const config_event_context_ppid;
-const char * const config_event_context_vppid;
-const char * const config_event_context_pthread_id;
-const char * const config_event_context_hostname;
-const char * const config_event_context_ip;
-
-#endif /* CONFIG_SESSION_INTERNAL_H */
index 04bd2fdf207a71539e4e27a8b26f296b957a4c0b..a890c9d872e1778875811c598cd448451a5ff793 100644 (file)
@@ -31,7 +31,6 @@
 #include <common/error.h>
 #include <common/macros.h>
 #include <common/utils.h>
-#include <common/config/config-session-internal.h>
 #include <lttng/lttng-error.h>
 #include <libxml/parser.h>
 #include <libxml/valid.h>
index f840dd05d56d1665bdd1b89848ce2049a62ae743..a11eec9c74a3ac6722ecfc899c2291b15693e41a 100644 (file)
@@ -19,6 +19,7 @@
 #define _CONFIG_H
 
 #include <common/config/ini.h>
+#include <common/config/config-session-abi.h>
 #include <common/macros.h>
 #include <stdint.h>
 
This page took 0.031118 seconds and 5 git commands to generate.