[sysprof] libsysprof-ui: add inside guards
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: add inside guards
- Date: Wed, 29 May 2019 22:16:42 +0000 (UTC)
commit a6e061f5b1ce38afe59a5baab5c479b7380d517d
Author: Christian Hergert <chergert redhat com>
Date: Wed May 8 17:10:08 2019 -0700
libsysprof-ui: add inside guards
Like the previous, but for libsysprof-ui.
src/libsysprof-ui/sysprof-callgraph-view.h | 4 ++++
src/libsysprof-ui/sysprof-cell-renderer-percent.h | 4 ++++
src/libsysprof-ui/sysprof-color-cycle.h | 4 ++++
src/libsysprof-ui/sysprof-cpu-visualizer-row.h | 4 ++++
src/libsysprof-ui/sysprof-empty-state-view.h | 4 ++++
src/libsysprof-ui/sysprof-failed-state-view.h | 4 ++++
src/libsysprof-ui/sysprof-line-visualizer-row.h | 4 ++++
src/libsysprof-ui/sysprof-mark-visualizer-row.h | 4 ++++
src/libsysprof-ui/sysprof-model-filter.h | 4 ++++
src/libsysprof-ui/sysprof-multi-paned.h | 4 ++++
src/libsysprof-ui/sysprof-process-model-row.h | 4 ++++
src/libsysprof-ui/sysprof-profiler-menu-button.h | 4 ++++
src/libsysprof-ui/sysprof-recording-state-view.h | 4 ++++
src/libsysprof-ui/sysprof-theme-manager.h | 4 ++++
src/libsysprof-ui/sysprof-visualizer-list.h | 4 ++++
src/libsysprof-ui/sysprof-visualizer-row.h | 4 ++++
src/libsysprof-ui/sysprof-visualizer-ticks.h | 4 ++++
src/libsysprof-ui/sysprof-visualizer-view.h | 4 ++++
src/libsysprof-ui/sysprof-zoom-manager.h | 4 ++++
src/tests/test-zoom.c | 2 +-
20 files changed, 77 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-callgraph-view.h b/src/libsysprof-ui/sysprof-callgraph-view.h
index d2df247..06117e1 100644
--- a/src/libsysprof-ui/sysprof-callgraph-view.h
+++ b/src/libsysprof-ui/sysprof-callgraph-view.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include <sysprof.h>
diff --git a/src/libsysprof-ui/sysprof-cell-renderer-percent.h
b/src/libsysprof-ui/sysprof-cell-renderer-percent.h
index 0605a24..f6b26f0 100644
--- a/src/libsysprof-ui/sysprof-cell-renderer-percent.h
+++ b/src/libsysprof-ui/sysprof-cell-renderer-percent.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-color-cycle.h b/src/libsysprof-ui/sysprof-color-cycle.h
index 6482dd3..1f08dbd 100644
--- a/src/libsysprof-ui/sysprof-color-cycle.h
+++ b/src/libsysprof-ui/sysprof-color-cycle.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-cpu-visualizer-row.h b/src/libsysprof-ui/sysprof-cpu-visualizer-row.h
index e329d3f..c8293c4 100644
--- a/src/libsysprof-ui/sysprof-cpu-visualizer-row.h
+++ b/src/libsysprof-ui/sysprof-cpu-visualizer-row.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include "sysprof-line-visualizer-row.h"
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-empty-state-view.h b/src/libsysprof-ui/sysprof-empty-state-view.h
index 41711b4..730ee7d 100644
--- a/src/libsysprof-ui/sysprof-empty-state-view.h
+++ b/src/libsysprof-ui/sysprof-empty-state-view.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-failed-state-view.h b/src/libsysprof-ui/sysprof-failed-state-view.h
index 650518e..29267ec 100644
--- a/src/libsysprof-ui/sysprof-failed-state-view.h
+++ b/src/libsysprof-ui/sysprof-failed-state-view.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include <sysprof.h>
diff --git a/src/libsysprof-ui/sysprof-line-visualizer-row.h b/src/libsysprof-ui/sysprof-line-visualizer-row.h
index d9ced27..cbe1693 100644
--- a/src/libsysprof-ui/sysprof-line-visualizer-row.h
+++ b/src/libsysprof-ui/sysprof-line-visualizer-row.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include "sysprof-visualizer-row.h"
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-mark-visualizer-row.h b/src/libsysprof-ui/sysprof-mark-visualizer-row.h
index 9069e2d..beda5d5 100644
--- a/src/libsysprof-ui/sysprof-mark-visualizer-row.h
+++ b/src/libsysprof-ui/sysprof-mark-visualizer-row.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include "sysprof-visualizer-row.h"
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-model-filter.h b/src/libsysprof-ui/sysprof-model-filter.h
index 1b2b8ed..ccc14fb 100644
--- a/src/libsysprof-ui/sysprof-model-filter.h
+++ b/src/libsysprof-ui/sysprof-model-filter.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gio/gio.h>
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-multi-paned.h b/src/libsysprof-ui/sysprof-multi-paned.h
index 2b0e6f1..7fa6bdf 100644
--- a/src/libsysprof-ui/sysprof-multi-paned.h
+++ b/src/libsysprof-ui/sysprof-multi-paned.h
@@ -21,6 +21,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-version-macros.h"
diff --git a/src/libsysprof-ui/sysprof-process-model-row.h b/src/libsysprof-ui/sysprof-process-model-row.h
index fd600ce..cd22f64 100644
--- a/src/libsysprof-ui/sysprof-process-model-row.h
+++ b/src/libsysprof-ui/sysprof-process-model-row.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include <sysprof.h>
diff --git a/src/libsysprof-ui/sysprof-profiler-menu-button.h
b/src/libsysprof-ui/sysprof-profiler-menu-button.h
index a30fffb..c62d111 100644
--- a/src/libsysprof-ui/sysprof-profiler-menu-button.h
+++ b/src/libsysprof-ui/sysprof-profiler-menu-button.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-profiler.h"
diff --git a/src/libsysprof-ui/sysprof-recording-state-view.h
b/src/libsysprof-ui/sysprof-recording-state-view.h
index dc2aa93..99ab87e 100644
--- a/src/libsysprof-ui/sysprof-recording-state-view.h
+++ b/src/libsysprof-ui/sysprof-recording-state-view.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include <sysprof.h>
diff --git a/src/libsysprof-ui/sysprof-theme-manager.h b/src/libsysprof-ui/sysprof-theme-manager.h
index 6388049..51b0a79 100644
--- a/src/libsysprof-ui/sysprof-theme-manager.h
+++ b/src/libsysprof-ui/sysprof-theme-manager.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
G_BEGIN_DECLS
diff --git a/src/libsysprof-ui/sysprof-visualizer-list.h b/src/libsysprof-ui/sysprof-visualizer-list.h
index b942283..903b2f1 100644
--- a/src/libsysprof-ui/sysprof-visualizer-list.h
+++ b/src/libsysprof-ui/sysprof-visualizer-list.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-capture-reader.h"
diff --git a/src/libsysprof-ui/sysprof-visualizer-row.h b/src/libsysprof-ui/sysprof-visualizer-row.h
index 9cb85a7..5ab8fd6 100644
--- a/src/libsysprof-ui/sysprof-visualizer-row.h
+++ b/src/libsysprof-ui/sysprof-visualizer-row.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include "sysprof-capture-reader.h"
diff --git a/src/libsysprof-ui/sysprof-visualizer-ticks.h b/src/libsysprof-ui/sysprof-visualizer-ticks.h
index 067881b..a8ce6ad 100644
--- a/src/libsysprof-ui/sysprof-visualizer-ticks.h
+++ b/src/libsysprof-ui/sysprof-visualizer-ticks.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
G_BEGIN_DECLS
diff --git a/src/libsysprof-ui/sysprof-visualizer-view.h b/src/libsysprof-ui/sysprof-visualizer-view.h
index be29b4d..a18237c 100644
--- a/src/libsysprof-ui/sysprof-visualizer-view.h
+++ b/src/libsysprof-ui/sysprof-visualizer-view.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <gtk/gtk.h>
#include <sysprof.h>
diff --git a/src/libsysprof-ui/sysprof-zoom-manager.h b/src/libsysprof-ui/sysprof-zoom-manager.h
index f7932a0..72517ce 100644
--- a/src/libsysprof-ui/sysprof-zoom-manager.h
+++ b/src/libsysprof-ui/sysprof-zoom-manager.h
@@ -20,6 +20,10 @@
#pragma once
+#if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION)
+# error "Only <sysprof-ui.h> can be included directly."
+#endif
+
#include <glib-object.h>
#include "sysprof-version-macros.h"
diff --git a/src/tests/test-zoom.c b/src/tests/test-zoom.c
index f6b8093..a466c46 100644
--- a/src/tests/test-zoom.c
+++ b/src/tests/test-zoom.c
@@ -1,4 +1,4 @@
-#include "sysprof-zoom-manager.h"
+#include <sysprof-ui.h>
static void
test_zoom_manager (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]