[sysprof: 47/63] libsysprof-capture: Move SysprofBacktraceFunc to a different header
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof: 47/63] libsysprof-capture: Move SysprofBacktraceFunc to a different header
- Date: Sat, 4 Jul 2020 18:33:17 +0000 (UTC)
commit c89a47939e2f8848e89a8006b1c95720571504c7
Author: Philip Withnall <withnall endlessm com>
Date: Thu Jul 2 13:05:22 2020 +0100
libsysprof-capture: Move SysprofBacktraceFunc to a different header
So it’s next to the definition of `SysprofCaptureAddress`, which it
uses.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps: #40
src/libsysprof-capture/sysprof-capture-types.h | 13 +++++++++++++
src/libsysprof-capture/sysprof-capture-writer.h | 13 -------------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-types.h b/src/libsysprof-capture/sysprof-capture-types.h
index c0d2e6e..f249be5 100644
--- a/src/libsysprof-capture/sysprof-capture-types.h
+++ b/src/libsysprof-capture/sysprof-capture-types.h
@@ -370,4 +370,17 @@ sysprof_capture_address_compare (SysprofCaptureAddress a,
return 0;
}
+/**
+ * SysprofBacktraceFunc:
+ * @addrs: (inout) (array length=n_addrs): an array to place addresses
+ * into the capture frame
+ * @n_addrs: the length of @addrs
+ * @user_data: (scope call): closure data for the callback
+ *
+ * Returns: the number of addresses filled in @addrs
+ */
+typedef int (*SysprofBacktraceFunc) (SysprofCaptureAddress *addrs,
+ unsigned int n_addrs,
+ void *user_data);
+
SYSPROF_END_DECLS
diff --git a/src/libsysprof-capture/sysprof-capture-writer.h b/src/libsysprof-capture/sysprof-capture-writer.h
index c6c3150..b69cd74 100644
--- a/src/libsysprof-capture/sysprof-capture-writer.h
+++ b/src/libsysprof-capture/sysprof-capture-writer.h
@@ -67,19 +67,6 @@ SYSPROF_BEGIN_DECLS
typedef struct _SysprofCaptureWriter SysprofCaptureWriter;
-/**
- * SysprofBacktraceFunc:
- * @addrs: (inout) (array length=n_addrs): an array to place addresses
- * into the capture frame
- * @n_addrs: the length of @addrs
- * @user_data: (scope call): closure data for the callback
- *
- * Returns: the number of addresses filled in @addrs
- */
-typedef int (*SysprofBacktraceFunc) (SysprofCaptureAddress *addrs,
- unsigned int n_addrs,
- void *user_data);
-
SYSPROF_AVAILABLE_IN_ALL
SysprofCaptureWriter *sysprof_capture_writer_new_from_env (size_t
buffer_size);
SYSPROF_AVAILABLE_IN_ALL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]