mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Use C11 types instead of GLib types
This is an almost entirely mechanical* conversion from (for example) `gint` → `int`, `guint8` → `uint8_t`, etc. It is not entirely complete, as many GLib functions are still used in libsysprof-capture, which necessitate some use of GLib types. It also avoids renaming `gboolean` → `bool` as that’s a slightly more controversial change which will happen in the following commit. *Code was manually realigned afterwards. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -74,19 +74,19 @@ SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_or (SysprofCaptureCondition *left,
|
||||
SysprofCaptureCondition *right);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_type_in (guint n_types,
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_type_in (unsigned int n_types,
|
||||
const SysprofCaptureFrameType *types);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_time_between (gint64 begin_time,
|
||||
gint64 end_time);
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_time_between (int64_t begin_time,
|
||||
int64_t end_time);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_pid_in (guint n_pids,
|
||||
const gint32 *pids);
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_pid_in (unsigned int n_pids,
|
||||
const int32_t *pids);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_counter_in (guint n_counters,
|
||||
const guint *counters);
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_counter_in (unsigned int n_counters,
|
||||
const unsigned int *counters);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_file (const gchar *path);
|
||||
SysprofCaptureCondition *sysprof_capture_condition_new_where_file (const char *path);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sysprof_capture_condition_match (const SysprofCaptureCondition *self,
|
||||
const SysprofCaptureFrame *frame);
|
||||
|
||||
Reference in New Issue
Block a user