libsysprof: add async variant for proc source

This commit is contained in:
Christian Hergert
2019-05-10 20:41:28 -07:00
parent 6bb7eded8a
commit 36ecfd3dd1
2 changed files with 72 additions and 0 deletions

View File

@ -73,6 +73,15 @@ gboolean sysprof_helpers_get_process_info (SysprofHelpers
GCancellable *cancellable,
GVariant **info,
GError **error);
void sysprof_helpers_get_process_info_async (SysprofHelpers *self,
const gchar *attributes,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean sysprof_helpers_get_process_info_finish(SysprofHelpers *self,
GAsyncResult *result,
GVariant **info,
GError **error);
#ifdef __linux__
gboolean sysprof_helpers_perf_event_open (SysprofHelpers *self,
struct perf_event_attr *attr,