mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Move autocleanup definitions to libsysprof
In preparation for dropping the GLib dependency from libsysprof-capture, move the autocleanup definitions up to libsysprof. Add a new header for them. This is slightly awkward in the tools, which depend on libsysprof-capture but not libsysprof. Rather than make them depend on libsysprof (which might be disabled at configure time), include the `sysprof-capture-autocleanups.h` file between source directories. `SYSPROF_COMPILATION` needs to be defined for this to work. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -91,6 +91,4 @@ SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_capture_condition_match (const SysprofCaptureCondition *self,
|
||||
const SysprofCaptureFrame *frame);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureCondition, sysprof_capture_condition_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -97,6 +97,4 @@ SYSPROF_AVAILABLE_IN_ALL
|
||||
void sysprof_capture_cursor_add_condition (SysprofCaptureCursor *self,
|
||||
SysprofCaptureCondition *condition);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureCursor, sysprof_capture_cursor_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -147,6 +147,5 @@ gboolean sysprof_capture_reader_read_file_fd (
|
||||
const gchar *path,
|
||||
gint fd);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureReader, sysprof_capture_reader_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@ -249,6 +249,4 @@ gboolean _sysprof_capture_writer_set_time_range (Sy
|
||||
gint64 end_time) G_GNUC_INTERNAL;
|
||||
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureWriter, sysprof_capture_writer_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user