mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
cursor: add helper to get reader
We might need this so that we can access to the updated end time that was determined by iterating frames.
This commit is contained in:
@ -210,3 +210,18 @@ sp_capture_cursor_new (SpCaptureReader *reader)
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
/**
|
||||
* sp_capture_cursor_get_reader:
|
||||
*
|
||||
* Gets the underlying reader that is used by the cursor.
|
||||
*
|
||||
* Returns: (transfer none): An #SpCaptureReader
|
||||
*/
|
||||
SpCaptureReader *
|
||||
sp_capture_cursor_get_reader (SpCaptureCursor *self)
|
||||
{
|
||||
g_return_val_if_fail (SP_IS_CAPTURE_CURSOR (self), NULL);
|
||||
|
||||
return self->reader;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user