[sysprof] libsysprof-ui: add access to control source from .ui



commit 390c5cde18a2fe6a96127602c77f96cc9a1f45e4
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 13 15:18:16 2020 -0700

    libsysprof-ui: add access to control source from .ui

 src/libsysprof-ui/sysprof-profiler-assistant.c | 2 ++
 src/libsysprof/sysprof-control-source.h        | 2 ++
 src/libsysprof/sysprof.h                       | 1 +
 3 files changed, 5 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-profiler-assistant.c b/src/libsysprof-ui/sysprof-profiler-assistant.c
index dc22da2..069f3c9 100644
--- a/src/libsysprof-ui/sysprof-profiler-assistant.c
+++ b/src/libsysprof-ui/sysprof-profiler-assistant.c
@@ -31,6 +31,7 @@
 #include "sysprof-platform.h"
 
 #include "sysprof-aid-icon.h"
+#include "sysprof-control-source.h"
 #include "sysprof-environ-editor.h"
 #include "sysprof-model-filter.h"
 #include "sysprof-profiler-assistant.h"
@@ -394,6 +395,7 @@ sysprof_profiler_assistant_class_init (SysprofProfilerAssistantClass *klass)
   g_type_ensure (SYSPROF_TYPE_AID_ICON);
   g_type_ensure (SYSPROF_TYPE_BATTERY_AID);
   g_type_ensure (SYSPROF_TYPE_CALLGRAPH_AID);
+  g_type_ensure (SYSPROF_TYPE_CONTROL_SOURCE);
   g_type_ensure (SYSPROF_TYPE_CPU_AID);
   g_type_ensure (SYSPROF_TYPE_DISKSTAT_SOURCE);
   g_type_ensure (SYSPROF_TYPE_ENVIRON_EDITOR);
diff --git a/src/libsysprof/sysprof-control-source.h b/src/libsysprof/sysprof-control-source.h
index fd119d9..b2d4346 100644
--- a/src/libsysprof/sysprof-control-source.h
+++ b/src/libsysprof/sysprof-control-source.h
@@ -26,8 +26,10 @@ G_BEGIN_DECLS
 
 #define SYSPROF_TYPE_CONTROL_SOURCE (sysprof_control_source_get_type())
 
+SYSPROF_AVAILABLE_IN_3_38
 G_DECLARE_FINAL_TYPE (SysprofControlSource, sysprof_control_source, SYSPROF, CONTROL_SOURCE, GObject)
 
+SYSPROF_AVAILABLE_IN_3_38
 SysprofControlSource *sysprof_control_source_new (void);
 
 G_END_DECLS
diff --git a/src/libsysprof/sysprof.h b/src/libsysprof/sysprof.h
index bd81a83..a37d7ed 100644
--- a/src/libsysprof/sysprof.h
+++ b/src/libsysprof/sysprof.h
@@ -28,6 +28,7 @@ G_BEGIN_DECLS
 # include "sysprof-callgraph-profile.h"
 # include "sysprof-capture-gobject.h"
 # include "sysprof-capture-symbol-resolver.h"
+# include "sysprof-control-source.h"
 # include "sysprof-diskstat-source.h"
 # include "sysprof-elf-symbol-resolver.h"
 # include "sysprof-gjs-source.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]