mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
libsysprof: emit finished in source
This commit is contained in:
@ -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
|
static void
|
||||||
source_iface_init (SysprofSourceInterface *iface)
|
source_iface_init (SysprofSourceInterface *iface)
|
||||||
{
|
{
|
||||||
iface->prepare = sysprof_proxy_source_prepare;
|
iface->prepare = sysprof_proxy_source_prepare;
|
||||||
iface->set_writer = sysprof_proxy_source_set_writer;
|
iface->set_writer = sysprof_proxy_source_set_writer;
|
||||||
iface->get_is_ready = sysprof_proxy_source_get_is_ready;
|
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,
|
G_DEFINE_TYPE_WITH_CODE (SysprofProxySource, sysprof_proxy_source, G_TYPE_OBJECT,
|
||||||
|
|||||||
Reference in New Issue
Block a user