[sysprof] libsysprof: emit finished in source
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof: emit finished in source
- Date: Wed, 29 May 2019 22:38:00 +0000 (UTC)
commit 53addd722290465d547da9122d18a9a8bee07fc2
Author: Christian Hergert <chergert redhat com>
Date: Sun May 19 23:00:02 2019 -0700
libsysprof: emit finished in source
src/libsysprof/sysprof-proxy-source.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/libsysprof/sysprof-proxy-source.c b/src/libsysprof/sysprof-proxy-source.c
index 79f6ef7..6fb74f7 100644
--- a/src/libsysprof/sysprof-proxy-source.c
+++ b/src/libsysprof/sysprof-proxy-source.c
@@ -61,12 +61,21 @@ sysprof_proxy_source_set_writer (SysprofSource *source,
}
+static void
+sysprof_proxy_source_stop (SysprofSource *source)
+{
+ g_assert (SYSPROF_IS_PROXY_SOURCE (source));
+
+ sysprof_source_emit_finished (source);
+}
+
static void
source_iface_init (SysprofSourceInterface *iface)
{
iface->prepare = sysprof_proxy_source_prepare;
iface->set_writer = sysprof_proxy_source_set_writer;
iface->get_is_ready = sysprof_proxy_source_get_is_ready;
+ iface->stop = sysprof_proxy_source_stop;
}
G_DEFINE_TYPE_WITH_CODE (SysprofProxySource, sysprof_proxy_source, G_TYPE_OBJECT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]