libsysprof-ui: work on async loading

This commit is contained in:
Christian Hergert
2019-05-13 23:59:40 -07:00
parent 2e4b17be17
commit 91c95a0e0d
7 changed files with 156 additions and 33 deletions

View File

@ -39,9 +39,17 @@ struct _SysprofMarksViewClass
};
SYSPROF_AVAILABLE_IN_ALL
GtkWidget *sysprof_marks_view_new (void);
GtkWidget *sysprof_marks_view_new (void);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_marks_view_set_reader (SysprofMarksView *self,
SysprofCaptureReader *reader);
void sysprof_marks_view_load_async (SysprofMarksView *self,
SysprofCaptureReader *reader,
SysprofSelection *selection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_marks_view_load_finish (SysprofMarksView *self,
GAsyncResult *result,
GError **error);
G_END_DECLS