libsysprof: add sync get_proc variant and fallbacks

This commit is contained in:
Christian Hergert
2019-05-09 16:14:59 -07:00
parent 479de6cd92
commit fb9e356dbb
2 changed files with 47 additions and 3 deletions

View File

@ -42,6 +42,11 @@ gboolean sysprof_helpers_list_processes_finish (SysprofHelpers
gint32 **processes,
gsize *n_processes,
GError **error);
gboolean sysprof_helpers_get_proc_file (SysprofHelpers *self,
const gchar *path,
GCancellable *cancellable,
gchar **contents,
GError **error);
void sysprof_helpers_get_proc_file_async (SysprofHelpers *self,
const gchar *path,
GCancellable *cancellable,