libsysprof: emit finished in source

This commit is contained in:
Christian Hergert
2019-05-19 23:00:02 -07:00
parent 4ef741348c
commit 53addd7222

View File

@ -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,