diff options
author | Christian Hergert <chergert@redhat.com> | 2020-07-04 11:40:21 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2020-07-28 11:22:33 -0700 |
commit | 459af3acab2ef82ecd12356484df42afdd59f9ee (patch) | |
tree | 295210cef52d0e3fbedf56d2ae6433e24a321da3 /tests | |
parent | cc50be971dfc181925c4cf46b07912b8d487d9d8 (diff) | |
download | gtk+-459af3acab2ef82ecd12356484df42afdd59f9ee.tar.gz |
build: bump to sysprof 4 ABI
Sysprof has moved to a new ABI which removes GLib from the capture library
so that GLib itself can link against sysprof-capture.
This bumps the library ABI so we can keep things coordinated between all
the new tracing layers in the stack.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testperf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/testperf.c b/tests/testperf.c index c674516241..a605720c6d 100644 --- a/tests/testperf.c +++ b/tests/testperf.c @@ -1,3 +1,4 @@ +#include <errno.h> #include <stdio.h> #include <sysprof-capture.h> #include <gio/gio.h> @@ -7,7 +8,7 @@ typedef struct { gint64 value; } Data; -static gboolean +static bool callback (const SysprofCaptureFrame *frame, gpointer user_data) { @@ -94,9 +95,9 @@ main (int argc, char *argv[]) g_object_unref (subprocess); g_object_unref (launcher); - reader = sysprof_capture_reader_new (name, &error); - if (error) - g_error ("Opening syscap file: %s", error->message); + reader = sysprof_capture_reader_new (name); + if (!reader) + g_error ("Opening syscap file: %s", g_strerror (errno)); data.group = "style"; data.value = 0; |