diff --git a/src/libsysprof-ui/sysprof-callgraph-view.h b/src/libsysprof-ui/sysprof-callgraph-view.h index 068af87e..d2df2474 100644 --- a/src/libsysprof-ui/sysprof-callgraph-view.h +++ b/src/libsysprof-ui/sysprof-callgraph-view.h @@ -21,10 +21,7 @@ #pragma once #include - -#include "sysprof-callgraph-profile.h" - -#include "sysprof-version-macros.h" +#include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-cpu-visualizer-row.c b/src/libsysprof-ui/sysprof-cpu-visualizer-row.c index 43f8d809..f93d9d03 100644 --- a/src/libsysprof-ui/sysprof-cpu-visualizer-row.c +++ b/src/libsysprof-ui/sysprof-cpu-visualizer-row.c @@ -22,8 +22,8 @@ #include "config.h" -#include "sysprof-capture-condition.h" -#include "sysprof-capture-cursor.h" +#include + #include "sysprof-color-cycle.h" #include "sysprof-cpu-visualizer-row.h" diff --git a/src/libsysprof-ui/sysprof-failed-state-view.h b/src/libsysprof-ui/sysprof-failed-state-view.h index 252f4493..650518ee 100644 --- a/src/libsysprof-ui/sysprof-failed-state-view.h +++ b/src/libsysprof-ui/sysprof-failed-state-view.h @@ -21,9 +21,7 @@ #pragma once #include - -#include "sysprof-profiler.h" -#include "sysprof-version-macros.h" +#include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-line-visualizer-row.c b/src/libsysprof-ui/sysprof-line-visualizer-row.c index 3f82ef08..5fefa980 100644 --- a/src/libsysprof-ui/sysprof-line-visualizer-row.c +++ b/src/libsysprof-ui/sysprof-line-visualizer-row.c @@ -24,10 +24,9 @@ #include #include +#include #include "pointcache.h" -#include "sysprof-capture-condition.h" -#include "sysprof-capture-cursor.h" #include "sysprof-line-visualizer-row.h" typedef struct diff --git a/src/libsysprof-ui/sysprof-process-model-row.c b/src/libsysprof-ui/sysprof-process-model-row.c index 55b404ea..aa046f39 100644 --- a/src/libsysprof-ui/sysprof-process-model-row.c +++ b/src/libsysprof-ui/sysprof-process-model-row.c @@ -18,6 +18,8 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +#define G_LOG_DOMAIN "sysprof-process-model-row" + #include "config.h" #include "sysprof-process-model-row.h" diff --git a/src/libsysprof-ui/sysprof-process-model-row.h b/src/libsysprof-ui/sysprof-process-model-row.h index 8f3858a4..fd600ced 100644 --- a/src/libsysprof-ui/sysprof-process-model-row.h +++ b/src/libsysprof-ui/sysprof-process-model-row.h @@ -21,9 +21,7 @@ #pragma once #include - -#include "sysprof-process-model-item.h" -#include "sysprof-version-macros.h" +#include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-profiler-menu-button.c b/src/libsysprof-ui/sysprof-profiler-menu-button.c index 38c01c06..395d7391 100644 --- a/src/libsysprof-ui/sysprof-profiler-menu-button.c +++ b/src/libsysprof-ui/sysprof-profiler-menu-button.c @@ -22,10 +22,9 @@ #include #include +#include #include "sysprof-model-filter.h" -#include "sysprof-process-model.h" -#include "sysprof-process-model-item.h" #include "sysprof-process-model-row.h" #include "sysprof-profiler-menu-button.h" diff --git a/src/libsysprof-ui/sysprof-recording-state-view.h b/src/libsysprof-ui/sysprof-recording-state-view.h index 30ade80e..dc2aa936 100644 --- a/src/libsysprof-ui/sysprof-recording-state-view.h +++ b/src/libsysprof-ui/sysprof-recording-state-view.h @@ -21,9 +21,7 @@ #pragma once #include - -#include "sysprof-profiler.h" -#include "sysprof-version-macros.h" +#include G_BEGIN_DECLS diff --git a/src/libsysprof-ui/sysprof-ui.h b/src/libsysprof-ui/sysprof-ui.h index 6e27882e..df9c24dc 100644 --- a/src/libsysprof-ui/sysprof-ui.h +++ b/src/libsysprof-ui/sysprof-ui.h @@ -35,8 +35,6 @@ G_BEGIN_DECLS # include "sysprof-model-filter.h" # include "sysprof-multi-paned.h" # include "sysprof-recording-state-view.h" -# include "sysprof-process-model.h" -# include "sysprof-process-model-item.h" # include "sysprof-process-model-row.h" # include "sysprof-profiler-menu-button.h" # include "sysprof-visualizer-row.h" diff --git a/src/libsysprof-ui/sysprof-visualizer-view.c b/src/libsysprof-ui/sysprof-visualizer-view.c index 8d8dee1d..8b935eed 100644 --- a/src/libsysprof-ui/sysprof-visualizer-view.c +++ b/src/libsysprof-ui/sysprof-visualizer-view.c @@ -28,7 +28,6 @@ #include "sysprof-visualizer-list.h" #include "sysprof-visualizer-row.h" #include "sysprof-visualizer-row-private.h" -#include "sysprof-selection.h" #include "sysprof-visualizer-ticks.h" #include "sysprof-visualizer-view.h" diff --git a/src/libsysprof/sysprof-callgraph-profile.h b/src/libsysprof/sysprof-callgraph-profile.h index bb1d8496..1d8a2a97 100644 --- a/src/libsysprof/sysprof-callgraph-profile.h +++ b/src/libsysprof/sysprof-callgraph-profile.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-profile.h" diff --git a/src/libsysprof/sysprof-capture-gobject.h b/src/libsysprof/sysprof-capture-gobject.h index 30f59945..80a2f4c2 100644 --- a/src/libsysprof/sysprof-capture-gobject.h +++ b/src/libsysprof/sysprof-capture-gobject.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof/sysprof-elf-symbol-resolver.h b/src/libsysprof/sysprof-elf-symbol-resolver.h index e2d2eaec..3a108f67 100644 --- a/src/libsysprof/sysprof-elf-symbol-resolver.h +++ b/src/libsysprof/sysprof-elf-symbol-resolver.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-symbol-resolver.h" diff --git a/src/libsysprof/sysprof-gjs-source.h b/src/libsysprof/sysprof-gjs-source.h index 1c111b6b..1f12a6fe 100644 --- a/src/libsysprof/sysprof-gjs-source.h +++ b/src/libsysprof/sysprof-gjs-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-source.h" G_BEGIN_DECLS diff --git a/src/libsysprof/sysprof-hostinfo-source.h b/src/libsysprof/sysprof-hostinfo-source.h index 220c4bdb..ebfd987d 100644 --- a/src/libsysprof/sysprof-hostinfo-source.h +++ b/src/libsysprof/sysprof-hostinfo-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-source.h" diff --git a/src/libsysprof/sysprof-jitmap-symbol-resolver.h b/src/libsysprof/sysprof-jitmap-symbol-resolver.h index ad97e0ad..355c4398 100644 --- a/src/libsysprof/sysprof-jitmap-symbol-resolver.h +++ b/src/libsysprof/sysprof-jitmap-symbol-resolver.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-symbol-resolver.h" G_BEGIN_DECLS diff --git a/src/libsysprof/sysprof-kallsyms.h b/src/libsysprof/sysprof-kallsyms.h index 99d33da0..2a7bb5e2 100644 --- a/src/libsysprof/sysprof-kallsyms.h +++ b/src/libsysprof/sysprof-kallsyms.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" G_BEGIN_DECLS diff --git a/src/libsysprof/sysprof-kernel-symbol-resolver.h b/src/libsysprof/sysprof-kernel-symbol-resolver.h index 3761d91b..df4fd485 100644 --- a/src/libsysprof/sysprof-kernel-symbol-resolver.h +++ b/src/libsysprof/sysprof-kernel-symbol-resolver.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-symbol-resolver.h" G_BEGIN_DECLS diff --git a/src/libsysprof/sysprof-kernel-symbol.h b/src/libsysprof/sysprof-kernel-symbol.h index 67359a67..6856e909 100644 --- a/src/libsysprof/sysprof-kernel-symbol.h +++ b/src/libsysprof/sysprof-kernel-symbol.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-capture-types.h" G_BEGIN_DECLS diff --git a/src/libsysprof/sysprof-local-profiler.h b/src/libsysprof/sysprof-local-profiler.h index e1f10a27..a778423d 100644 --- a/src/libsysprof/sysprof-local-profiler.h +++ b/src/libsysprof/sysprof-local-profiler.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-profiler.h" #include "sysprof-version-macros.h" diff --git a/src/libsysprof/sysprof-map-lookaside.h b/src/libsysprof/sysprof-map-lookaside.h index 9ceaf7e5..0e05a563 100644 --- a/src/libsysprof/sysprof-map-lookaside.h +++ b/src/libsysprof/sysprof-map-lookaside.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-capture-types.h" diff --git a/src/libsysprof/sysprof-memory-source.h b/src/libsysprof/sysprof-memory-source.h index cd024916..5c33dbc2 100644 --- a/src/libsysprof/sysprof-memory-source.h +++ b/src/libsysprof/sysprof-memory-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-source.h" diff --git a/src/libsysprof/sysprof-perf-counter.h b/src/libsysprof/sysprof-perf-counter.h index a325f7cc..88376492 100644 --- a/src/libsysprof/sysprof-perf-counter.h +++ b/src/libsysprof/sysprof-perf-counter.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include diff --git a/src/libsysprof/sysprof-perf-source.h b/src/libsysprof/sysprof-perf-source.h index 11af8763..a69f6317 100644 --- a/src/libsysprof/sysprof-perf-source.h +++ b/src/libsysprof/sysprof-perf-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-source.h" diff --git a/src/libsysprof/sysprof-proc-source.h b/src/libsysprof/sysprof-proc-source.h index 61242451..743cf27f 100644 --- a/src/libsysprof/sysprof-proc-source.h +++ b/src/libsysprof/sysprof-proc-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-source.h" diff --git a/src/libsysprof/sysprof-process-model-item.c b/src/libsysprof/sysprof-process-model-item.c index 3b3c8f20..6575528b 100644 --- a/src/libsysprof/sysprof-process-model-item.c +++ b/src/libsysprof/sysprof-process-model-item.c @@ -18,11 +18,14 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +#define G_LOG_DOMAIN "sp-process-model-item" + #include "config.h" #include #include "sysprof-process-model-item.h" + #ifdef __linux__ # include "sysprof-proc-source.h" #endif diff --git a/src/libsysprof/sysprof-process-model-item.h b/src/libsysprof/sysprof-process-model-item.h index 71f51213..0e8a0960 100644 --- a/src/libsysprof/sysprof-process-model-item.h +++ b/src/libsysprof/sysprof-process-model-item.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include diff --git a/src/libsysprof/sysprof-process-model.h b/src/libsysprof/sysprof-process-model.h index 593748c4..040e3a19 100644 --- a/src/libsysprof/sysprof-process-model.h +++ b/src/libsysprof/sysprof-process-model.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof/sysprof-profile.h b/src/libsysprof/sysprof-profile.h index 4096365a..a924d82e 100644 --- a/src/libsysprof/sysprof-profile.h +++ b/src/libsysprof/sysprof-profile.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof/sysprof-profiler.h b/src/libsysprof/sysprof-profiler.h index 7f18734a..42193eb8 100644 --- a/src/libsysprof/sysprof-profiler.h +++ b/src/libsysprof/sysprof-profiler.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include "sysprof-capture-writer.h" diff --git a/src/libsysprof/sysprof-selection.h b/src/libsysprof/sysprof-selection.h index e4f8c073..e623ff9b 100644 --- a/src/libsysprof/sysprof-selection.h +++ b/src/libsysprof/sysprof-selection.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-version-macros.h" diff --git a/src/libsysprof/sysprof-source.h b/src/libsysprof/sysprof-source.h index c04f8500..82181382 100644 --- a/src/libsysprof/sysprof-source.h +++ b/src/libsysprof/sysprof-source.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-capture-writer.h" diff --git a/src/libsysprof/sysprof-symbol-dirs.h b/src/libsysprof/sysprof-symbol-dirs.h index d7219772..01853614 100644 --- a/src/libsysprof/sysprof-symbol-dirs.h +++ b/src/libsysprof/sysprof-symbol-dirs.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include "sysprof-version-macros.h" #include diff --git a/src/libsysprof/sysprof-symbol-resolver.h b/src/libsysprof/sysprof-symbol-resolver.h index 9b9bd0ec..d63c8367 100644 --- a/src/libsysprof/sysprof-symbol-resolver.h +++ b/src/libsysprof/sysprof-symbol-resolver.h @@ -20,6 +20,10 @@ #pragma once +#if !defined (SYSPROF_INSIDE) && !defined (SYSPROF_COMPILATION) +# error "Only can be included directly." +#endif + #include #include "sysprof-address.h" diff --git a/src/libsysprof/sysprof.h b/src/libsysprof/sysprof.h index 7245d67a..b0ca8fd0 100644 --- a/src/libsysprof/sysprof.h +++ b/src/libsysprof/sysprof.h @@ -31,6 +31,8 @@ G_BEGIN_DECLS # include "sysprof-profile.h" # include "sysprof-profiler.h" # include "sysprof-map-lookaside.h" +# include "sysprof-process-model.h" +# include "sysprof-process-model-item.h" # include "sysprof-source.h" # include "sysprof-elf-symbol-resolver.h" # include "sysprof-jitmap-symbol-resolver.h"