libsysprof-capture: allow using ring in readwrite mode

This is a first step to be able to use the ring buffer as the backing
buffer for the SysprofCaptureWriter.
This commit is contained in:
Christian Hergert
2020-02-15 22:50:22 -07:00
parent 36860b449e
commit 69e4fb2588
3 changed files with 40 additions and 5 deletions

View File

@ -56,6 +56,8 @@ typedef gboolean (*MappedRingBufferCallback) (gconstpointer data,
G_GNUC_INTERNAL
MappedRingBuffer *mapped_ring_buffer_new_reader (gsize buffer_size);
G_GNUC_INTERNAL
MappedRingBuffer *mapped_ring_buffer_new_readwrite (gsize buffer_size);
G_GNUC_INTERNAL
MappedRingBuffer *mapped_ring_buffer_new_writer (gint fd);
G_GNUC_INTERNAL
gint mapped_ring_buffer_get_fd (MappedRingBuffer *self);