From c89a47939e2f8848e89a8006b1c95720571504c7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 2 Jul 2020 13:05:22 +0100 Subject: [PATCH] libsysprof-capture: Move SysprofBacktraceFunc to a different header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So it’s next to the definition of `SysprofCaptureAddress`, which it uses. Signed-off-by: Philip Withnall 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 c0d2e6e2..f249be5e 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 c6c31507..b69cd740 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