helpers: add sync helper

This commit is contained in:
Christian Hergert
2019-05-09 17:29:39 -07:00
parent 852d220f0a
commit ad4ca5faef
2 changed files with 36 additions and 2 deletions

View File

@ -33,6 +33,11 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (SysprofHelpers, sysprof_helpers, SYSPROF, HELPERS, GObject)
SysprofHelpers *sysprof_helpers_get_default (void);
gboolean sysprof_helpers_list_processes (SysprofHelpers *self,
GCancellable *cancellable,
gint32 **processes,
gsize *n_processes,
GError **error);
void sysprof_helpers_list_processes_async (SysprofHelpers *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,