libsysprof-gtk: start on some loading progress

This commit is contained in:
Christian Hergert
2023-06-19 19:00:22 -07:00
parent 9d6c60a0d6
commit 43ec0e48f5
4 changed files with 185 additions and 23 deletions

View File

@ -38,7 +38,14 @@ typedef struct _SysprofDocumentTimedValue
};
} SysprofDocumentTimedValue;
typedef void (*ProgressFunc) (double fraction,
const char *message,
gpointer user_data);
void _sysprof_document_new_async (GMappedFile *mapped_file,
ProgressFunc progress,
gpointer progress_data,
GDestroyNotify progress_data_destroy,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);