mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
capture: add doc for new_from_fd
This commit is contained in:
@ -106,6 +106,17 @@ sp_capture_reader_get_filename (SpCaptureReader *self)
|
|||||||
return self->filename;
|
return self->filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sp_capture_reader_new_from_fd:
|
||||||
|
* @fd: an fd to take ownership from
|
||||||
|
* @error: a location for a #GError or %NULL
|
||||||
|
*
|
||||||
|
* Creates a new reader using the file-descriptor.
|
||||||
|
*
|
||||||
|
* This is useful if you don't necessarily have access to the filename itself.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full): an #SpCaptureReader or %NULL upon failure.
|
||||||
|
*/
|
||||||
SpCaptureReader *
|
SpCaptureReader *
|
||||||
sp_capture_reader_new_from_fd (int fd,
|
sp_capture_reader_new_from_fd (int fd,
|
||||||
GError **error)
|
GError **error)
|
||||||
|
|||||||
Reference in New Issue
Block a user