mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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
This commit is contained in:
@ -370,4 +370,17 @@ sysprof_capture_address_compare (SysprofCaptureAddress a,
|
|||||||
return 0;
|
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
|
SYSPROF_END_DECLS
|
||||||
|
|||||||
@ -67,19 +67,6 @@ SYSPROF_BEGIN_DECLS
|
|||||||
|
|
||||||
typedef struct _SysprofCaptureWriter SysprofCaptureWriter;
|
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
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
SysprofCaptureWriter *sysprof_capture_writer_new_from_env (size_t buffer_size);
|
SysprofCaptureWriter *sysprof_capture_writer_new_from_env (size_t buffer_size);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
|
|||||||
Reference in New Issue
Block a user