libsysprof-profile: make enable/disable accessible

This commit is contained in:
Christian Hergert
2023-06-03 23:12:54 -07:00
parent 25d629beb4
commit d1db76a08d

View File

@ -125,13 +125,17 @@ typedef void (*SysprofPerfEventCallback) (const SysprofPerfEvent *event,
G_DECLARE_FINAL_TYPE (SysprofPerfEventStream, sysprof_perf_event_stream, SYSPROF, PERF_EVENT_STREAM, GObject)
DexFuture *sysprof_perf_event_stream_new (GDBusConnection *connection,
struct perf_event_attr *attr,
int cpu,
int group_fd,
gulong flags,
SysprofPerfEventCallback callback,
gpointer callback_data,
GDestroyNotify callback_data_destroy);
DexFuture *sysprof_perf_event_stream_new (GDBusConnection *connection,
struct perf_event_attr *attr,
int cpu,
int group_fd,
gulong flags,
SysprofPerfEventCallback callback,
gpointer callback_data,
GDestroyNotify callback_data_destroy);
gboolean sysprof_perf_event_stream_enable (SysprofPerfEventStream *self,
GError **error);
gboolean sysprof_perf_event_stream_disable (SysprofPerfEventStream *self,
GError **error);
G_END_DECLS