diff --git a/src/libsysprof-ui/sysprof-callgraph-view.h b/src/libsysprof-ui/sysprof-callgraph-view.h index d2df2474..06117e11 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 can be included directly." +#endif + #include #include diff --git a/src/libsysprof-ui/sysprof-cell-renderer-percent.h b/src/libsysprof-ui/sysprof-cell-renderer-percent.h index 0605a248..f6b26f0b 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 can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof-ui/sysprof-color-cycle.h b/src/libsysprof-ui/sysprof-color-cycle.h index 6482dd3f..1f08dbd8 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 can be included directly." +#endif + #include #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 e329d3f1..c8293c45 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 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 41711b4f..730ee7d2 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 can be included directly." +#endif + #include #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 650518ee..29267ecb 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 can be included directly." +#endif + #include #include diff --git a/src/libsysprof-ui/sysprof-line-visualizer-row.h b/src/libsysprof-ui/sysprof-line-visualizer-row.h index d9ced27c..cbe16930 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 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 9069e2d0..beda5d52 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 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 1b2b8edf..ccc14fb0 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 can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof-ui/sysprof-multi-paned.h b/src/libsysprof-ui/sysprof-multi-paned.h index 2b0e6f16..7fa6bdf2 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 can be included directly." +#endif + #include #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 fd600ced..cd22f641 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 can be included directly." +#endif + #include #include diff --git a/src/libsysprof-ui/sysprof-profiler-menu-button.h b/src/libsysprof-ui/sysprof-profiler-menu-button.h index a30fffbc..c62d1118 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 can be included directly." +#endif + #include #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 dc2aa936..99ab87e1 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 can be included directly." +#endif + #include #include diff --git a/src/libsysprof-ui/sysprof-theme-manager.h b/src/libsysprof-ui/sysprof-theme-manager.h index 63880490..51b0a790 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 can be included directly." +#endif + #include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-visualizer-list.h b/src/libsysprof-ui/sysprof-visualizer-list.h index b942283c..903b2f1a 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 can be included directly." +#endif + #include #include "sysprof-capture-reader.h" diff --git a/src/libsysprof-ui/sysprof-visualizer-row.h b/src/libsysprof-ui/sysprof-visualizer-row.h index 9cb85a70..5ab8fd6c 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 can be included directly." +#endif + #include #include "sysprof-capture-reader.h" diff --git a/src/libsysprof-ui/sysprof-visualizer-ticks.h b/src/libsysprof-ui/sysprof-visualizer-ticks.h index 067881bd..a8ce6ad3 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 can be included directly." +#endif + #include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-visualizer-view.h b/src/libsysprof-ui/sysprof-visualizer-view.h index be29b4dd..a18237c3 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 can be included directly." +#endif + #include #include diff --git a/src/libsysprof-ui/sysprof-zoom-manager.h b/src/libsysprof-ui/sysprof-zoom-manager.h index f7932a0f..72517ce2 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 can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/tests/test-zoom.c b/src/tests/test-zoom.c index f6b8093c..a466c46e 100644 --- a/src/tests/test-zoom.c +++ b/src/tests/test-zoom.c @@ -1,4 +1,4 @@ -#include "sysprof-zoom-manager.h" +#include static void test_zoom_manager (void)