diff --git a/src/libsysprof-capture/sysprof-capture-reader.c b/src/libsysprof-capture/sysprof-capture-reader.c index 2e91ac67..567db710 100644 --- a/src/libsysprof-capture/sysprof-capture-reader.c +++ b/src/libsysprof-capture/sysprof-capture-reader.c @@ -1277,3 +1277,11 @@ sysprof_capture_reader_read_file_fd (SysprofCaptureReader *self, g_return_val_if_reached (FALSE); } + +gint +sysprof_capture_reader_get_byte_order (SysprofCaptureReader *self) +{ + g_return_val_if_fail (self != NULL, 0); + + return self->endian; +} diff --git a/src/libsysprof-capture/sysprof-capture-reader.h b/src/libsysprof-capture/sysprof-capture-reader.h index 8ee2ea2e..49b30717 100644 --- a/src/libsysprof-capture/sysprof-capture-reader.h +++ b/src/libsysprof-capture/sysprof-capture-reader.h @@ -40,6 +40,8 @@ SysprofCaptureReader *sysprof_capture_reader_ref SYSPROF_AVAILABLE_IN_ALL void sysprof_capture_reader_unref (SysprofCaptureReader *self); SYSPROF_AVAILABLE_IN_ALL +gint sysprof_capture_reader_get_byte_order (SysprofCaptureReader *self); +SYSPROF_AVAILABLE_IN_ALL const gchar *sysprof_capture_reader_get_filename (SysprofCaptureReader *self); SYSPROF_AVAILABLE_IN_ALL const gchar *sysprof_capture_reader_get_time (SysprofCaptureReader *self);