libsysprof-analyze: add API to open input stream

This commit is contained in:
Christian Hergert
2023-05-14 18:19:30 -07:00
parent 3350ad61eb
commit 6429768373
2 changed files with 45 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#pragma once
#include <glib-object.h>
#include <gio/gio.h>
#include <sysprof-capture.h>
@ -32,8 +32,10 @@ SYSPROF_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (SysprofDocumentFile, sysprof_document_file, SYSPROF, DOCUMENT_FILE, GObject)
SYSPROF_AVAILABLE_IN_ALL
const char *sysprof_document_file_get_path (SysprofDocumentFile *self);
const char *sysprof_document_file_get_path (SysprofDocumentFile *self);
SYSPROF_AVAILABLE_IN_ALL
GBytes *sysprof_document_file_dup_bytes (SysprofDocumentFile *self);
GBytes *sysprof_document_file_dup_bytes (SysprofDocumentFile *self);
SYSPROF_AVAILABLE_IN_ALL
GInputStream *sysprof_document_file_read (SysprofDocumentFile *self);
G_END_DECLS