mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: use symbol versioning macros
This commit is contained in:
@ -59,12 +59,15 @@ libsysprof_ui_deps = [
|
||||
libsysprof_dep,
|
||||
]
|
||||
|
||||
libsysprof_ui = shared_library('sysprof-ui-@0@'.format(libsysprof_api_version),
|
||||
libsysprof_ui = shared_library(
|
||||
'sysprof-ui-@0@'.format(libsysprof_api_version),
|
||||
libsysprof_ui_public_sources + libsysprof_ui_private_sources + libsysprof_ui_resources,
|
||||
dependencies: libsysprof_ui_deps,
|
||||
install_dir: get_option('libdir'),
|
||||
install: true,
|
||||
c_args: [ '-DSYSPROF_UI_COMPILATION' ],
|
||||
|
||||
dependencies: libsysprof_ui_deps,
|
||||
install_dir: get_option('libdir'),
|
||||
install: true,
|
||||
c_args: [ '-DSYSPROF_UI_COMPILATION' ],
|
||||
gnu_symbol_visibility: 'hidden',
|
||||
)
|
||||
|
||||
libsysprof_ui_dep = declare_dependency(
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef POINT_CACHE_H
|
||||
#define POINT_CACHE_H
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@ -51,5 +50,3 @@ const Point *point_cache_get_points (PointCache *self,
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PointCache, point_cache_unref)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* POINT_CACHE_H */
|
||||
|
||||
@ -18,17 +18,19 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_CALLGRAPH_VIEW_H
|
||||
#define SP_CALLGRAPH_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sp-callgraph-profile.h"
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_CALLGRAPH_VIEW (sp_callgraph_view_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpCallgraphView, sp_callgraph_view, SP, CALLGRAPH_VIEW, GtkBin)
|
||||
|
||||
struct _SpCallgraphViewClass
|
||||
@ -40,13 +42,16 @@ struct _SpCallgraphViewClass
|
||||
gpointer padding[8];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_callgraph_view_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpCallgraphProfile *sp_callgraph_view_get_profile (SpCallgraphView *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_callgraph_view_set_profile (SpCallgraphView *self,
|
||||
SpCallgraphProfile *profile);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gchar *sp_callgraph_view_screenshot (SpCallgraphView *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
guint sp_callgraph_view_get_n_functions (SpCallgraphView *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_CALLGRAPH_VIEW_H */
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "sp-cell-renderer-percent.h"
|
||||
|
||||
@ -18,11 +18,12 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_CELL_RENDERER_PERCENT_H
|
||||
#define SP_CELL_RENDERER_PERCENT_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_CELL_RENDERER_PERCENT (sp_cell_renderer_percent_get_type())
|
||||
@ -48,12 +49,14 @@ struct _SpCellRendererPercentClass
|
||||
gpointer padding[4];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GType sp_cell_renderer_percent_get_type (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkCellRenderer *sp_cell_renderer_percent_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gdouble sp_cell_renderer_percent_get_percent (SpCellRendererPercent *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_cell_renderer_percent_set_percent (SpCellRendererPercent *self,
|
||||
gdouble percent);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_CELL_RENDERER_PERCENT_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-color-cycle"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-color-cycle.h"
|
||||
|
||||
G_DEFINE_BOXED_TYPE (SpColorCycle, sp_color_cycle, sp_color_cycle_ref, sp_color_cycle_unref)
|
||||
|
||||
@ -18,25 +18,30 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_COLOR_CYCLE_H
|
||||
#define SP_COLOR_CYCLE_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_COLOR_CYCLE (sp_color_cycle_get_type())
|
||||
|
||||
typedef struct _SpColorCycle SpColorCycle;
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GType sp_color_cycle_get_type (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpColorCycle *sp_color_cycle_ref (SpColorCycle *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_color_cycle_unref (SpColorCycle *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpColorCycle *sp_color_cycle_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_color_cycle_reset (SpColorCycle *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_color_cycle_next (SpColorCycle *self,
|
||||
GdkRGBA *rgba);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_COLOR_CYCLE_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-cpu-visualizer-row"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-capture-condition.h"
|
||||
#include "sp-capture-cursor.h"
|
||||
#include "sp-color-cycle.h"
|
||||
|
||||
@ -18,19 +18,20 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_CPU_VISUALIZER_ROW_H
|
||||
#define SP_CPU_VISUALIZER_ROW_H
|
||||
#pragma once
|
||||
|
||||
#include "sp-line-visualizer-row.h"
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_CPU_VISUALIZER_ROW (sp_cpu_visualizer_row_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_FINAL_TYPE (SpCpuVisualizerRow, sp_cpu_visualizer_row, SP, CPU_VISUALIZER_ROW, SpLineVisualizerRow)
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_cpu_visualizer_row_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_CPU_VISUALIZER_ROW_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-empty-state-view"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "sp-empty-state-view.h"
|
||||
|
||||
@ -18,15 +18,17 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_EMPTY_STATE_VIEW_H
|
||||
#define SP_EMPTY_STATE_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_EMPTY_STATE_VIEW (sp_empty_state_view_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpEmptyStateView, sp_empty_state_view, SP, EMPTY_STATE_VIEW, GtkBin)
|
||||
|
||||
struct _SpEmptyStateViewClass
|
||||
@ -36,9 +38,7 @@ struct _SpEmptyStateViewClass
|
||||
gpointer padding[4];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_empty_state_view_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_EMPTY_STATE_VIEW_H */
|
||||
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-failed-state-view.h"
|
||||
|
||||
G_DEFINE_TYPE (SpFailedStateView, sp_failed_state_view, GTK_TYPE_BIN)
|
||||
|
||||
@ -18,17 +18,18 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_FAILED_STATE_VIEW_H
|
||||
#define SP_FAILED_STATE_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sp-profiler.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_FAILED_STATE_VIEW (sp_failed_state_view_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpFailedStateView, sp_failed_state_view, SP, FAILED_STATE_VIEW, GtkBin)
|
||||
|
||||
struct _SpFailedStateViewClass
|
||||
@ -38,10 +39,10 @@ struct _SpFailedStateViewClass
|
||||
gpointer padding[4];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_failed_state_view_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_failed_state_view_set_profiler (SpFailedStateView *self,
|
||||
SpProfiler *profiler);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_FAILED_STATE_VIEW_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-line-visualizer-row"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@ -18,15 +18,16 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_LINE_VISUALIZER_ROW_H
|
||||
#define SP_LINE_VISUALIZER_ROW_H
|
||||
#pragma once
|
||||
|
||||
#include "sp-visualizer-row.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_LINE_VISUALIZER_ROW (sp_line_visualizer_row_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpLineVisualizerRow, sp_line_visualizer_row, SP, LINE_VISUALIZER_ROW, SpVisualizerRow)
|
||||
|
||||
struct _SpLineVisualizerRowClass
|
||||
@ -40,18 +41,21 @@ struct _SpLineVisualizerRowClass
|
||||
gpointer _reserved[16];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_line_visualizer_row_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_line_visualizer_row_clear (SpLineVisualizerRow *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_line_visualizer_row_add_counter (SpLineVisualizerRow *self,
|
||||
guint counter_id,
|
||||
const GdkRGBA *color);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_line_visualizer_row_set_line_width (SpLineVisualizerRow *self,
|
||||
guint counter_id,
|
||||
gdouble width);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_line_visualizer_row_set_fill (SpLineVisualizerRow *self,
|
||||
guint counter_id,
|
||||
const GdkRGBA *color);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_LINE_VISUALIZER_ROW_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-mark-visualizer-row"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-capture-condition.h"
|
||||
#include "sp-capture-cursor.h"
|
||||
#include "rectangles.h"
|
||||
|
||||
@ -21,11 +21,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "sp-visualizer-row.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_MARK_VISUALIZER_ROW (sp_mark_visualizer_row_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpMarkVisualizerRow, sp_mark_visualizer_row, SP, MARK_VISUALIZER_ROW, SpVisualizerRow)
|
||||
|
||||
struct _SpMarkVisualizerRowClass
|
||||
@ -36,8 +38,11 @@ struct _SpMarkVisualizerRowClass
|
||||
gpointer _reserved[16];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_mark_visualizer_row_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
const gchar *sp_mark_visualizer_row_get_group (SpMarkVisualizerRow *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_mark_visualizer_row_set_group (SpMarkVisualizerRow *self,
|
||||
const gchar *group);
|
||||
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-model-filter.h"
|
||||
|
||||
typedef struct
|
||||
|
||||
@ -18,11 +18,12 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_MODEL_FILTER_H
|
||||
#define SP_MODEL_FILTER_H
|
||||
#pragma once
|
||||
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_MODEL_FILTER (sp_model_filter_get_type())
|
||||
@ -30,6 +31,7 @@ G_BEGIN_DECLS
|
||||
typedef gboolean (*SpModelFilterFunc) (GObject *object,
|
||||
gpointer user_data);
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpModelFilter, sp_model_filter, SP, MODEL_FILTER, GObject)
|
||||
|
||||
struct _SpModelFilterClass
|
||||
@ -39,14 +41,16 @@ struct _SpModelFilterClass
|
||||
gpointer padding[8];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpModelFilter *sp_model_filter_new (GListModel *child_model);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GListModel *sp_model_filter_get_child_model (SpModelFilter *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_model_filter_invalidate (SpModelFilter *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_model_filter_set_filter_func (SpModelFilter *self,
|
||||
SpModelFilterFunc filter_func,
|
||||
gpointer filter_func_data,
|
||||
GDestroyNotify filter_func_data_destroy);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_MODEL_FILTER_H */
|
||||
|
||||
@ -19,6 +19,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-multi-paned.h"
|
||||
|
||||
#define HANDLE_WIDTH 10
|
||||
|
||||
@ -19,15 +19,17 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_MULTI_PANED_H
|
||||
#define SP_MULTI_PANED_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_MULTI_PANED (sp_multi_paned_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpMultiPaned, sp_multi_paned, SP, MULTI_PANED, GtkContainer)
|
||||
|
||||
struct _SpMultiPanedClass
|
||||
@ -49,9 +51,9 @@ struct _SpMultiPanedClass
|
||||
gpointer _reserved8;
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_multi_paned_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
guint sp_multi_paned_get_n_children (SpMultiPaned *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_MULTI_PANED_H */
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-process-model-row.h"
|
||||
|
||||
typedef struct
|
||||
|
||||
@ -18,17 +18,18 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_PROCESS_MODEL_ROW_H
|
||||
#define SP_PROCESS_MODEL_ROW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sp-process-model-item.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_PROCESS_MODEL_ROW (sp_process_model_row_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpProcessModelRow, sp_process_model_row, SP, PROCESS_MODEL_ROW, GtkListBoxRow)
|
||||
|
||||
struct _SpProcessModelRowClass
|
||||
@ -38,13 +39,14 @@ struct _SpProcessModelRowClass
|
||||
gpointer padding[4];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_process_model_row_new (SpProcessModelItem *item);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpProcessModelItem *sp_process_model_row_get_item (SpProcessModelRow *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sp_process_model_row_get_selected (SpProcessModelRow *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_process_model_row_set_selected (SpProcessModelRow *self,
|
||||
gboolean selected);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_PROCESS_MODEL_ROW_H */
|
||||
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@ -18,17 +18,18 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_PROFILER_MENU_BUTTON_H
|
||||
#define SP_PROFILER_MENU_BUTTON_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sp-profiler.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_PROFILER_MENU_BUTTON (sp_profiler_menu_button_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpProfilerMenuButton, sp_profiler_menu_button, SP, PROFILER_MENU_BUTTON, GtkMenuButton)
|
||||
|
||||
struct _SpProfilerMenuButtonClass
|
||||
@ -38,11 +39,12 @@ struct _SpProfilerMenuButtonClass
|
||||
gpointer padding[8];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_profiler_menu_button_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_profiler_menu_button_set_profiler (SpProfilerMenuButton *self,
|
||||
SpProfiler *profiler);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpProfiler *sp_profiler_menu_button_get_profiler (SpProfilerMenuButton *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_PROFILER_MENU_BUTTON_H */
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-recording-state-view.h"
|
||||
|
||||
typedef struct
|
||||
|
||||
@ -18,17 +18,18 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_RECORDING_STATE_VIEW_H
|
||||
#define SP_RECORDING_STATE_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "sp-profiler.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_RECORDING_STATE_VIEW (sp_recording_state_view_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpRecordingStateView, sp_recording_state_view, SP, RECORDING_STATE_VIEW, GtkBin)
|
||||
|
||||
struct _SpRecordingStateViewClass
|
||||
@ -38,10 +39,10 @@ struct _SpRecordingStateViewClass
|
||||
gpointer padding[4];
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_recording_state_view_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_recording_state_view_set_profiler (SpRecordingStateView *self,
|
||||
SpProfiler *profiler);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_RECORDING_STATE_VIEW_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-theme-manager"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-theme-manager.h"
|
||||
|
||||
struct _SpThemeManager
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_THEME_MANAGER_H
|
||||
#define SP_THEME_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@ -27,16 +26,18 @@ G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_THEME_MANAGER (sp_theme_manager_get_type())
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
G_DECLARE_FINAL_TYPE (SpThemeManager, sp_theme_manager, SP, THEME_MANAGER, GObject)
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
SpThemeManager *sp_theme_manager_get_default (void);
|
||||
G_GNUC_INTERNAL
|
||||
void sp_theme_manager_unregister (SpThemeManager *self,
|
||||
guint registration_id);
|
||||
G_GNUC_INTERNAL
|
||||
guint sp_theme_manager_register_resource (SpThemeManager *self,
|
||||
const gchar *theme_name,
|
||||
const gchar *variant,
|
||||
const gchar *resource);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_THEME_MANAGER_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-visualizer-list"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <sysprof.h>
|
||||
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_VISUALIZER_LIST_H
|
||||
#define SP_VISUALIZER_LIST_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@ -55,5 +54,3 @@ void sp_visualizer_list_set_zoom_manager (SpVisualizerList *self,
|
||||
SpZoomManager *zoom_manager);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_VISUALIZER_LIST_H */
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_VISUALIZER_ROW_PRIVATE_H
|
||||
#define SP_VISUALIZER_ROW_PRIVATE_H
|
||||
#pragma once
|
||||
|
||||
#include "sp-visualizer-row.h"
|
||||
|
||||
@ -28,5 +27,3 @@ G_BEGIN_DECLS
|
||||
gint _sp_visualizer_row_get_graph_width (SpVisualizerRow *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_VISUALIZER_ROW_PRIVATE_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-visualizer-row"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "sp-visualizer-row.h"
|
||||
#include "sp-visualizer-row-private.h"
|
||||
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_VISUALIZER_ROW_H
|
||||
#define SP_VISUALIZER_ROW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@ -74,5 +73,3 @@ void sp_visualizer_row_translate_points (SpVisualizerRow
|
||||
guint n_out_points);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_VISUALIZER_ROW_H */
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "sp-visualizer-ticks.h"
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_VISUALIZER_TICKS_H
|
||||
#define SP_VISUALIZER_TICKS_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
@ -41,5 +40,3 @@ void sp_visualizer_ticks_set_time_range (SpVisualizerTicks *self,
|
||||
gint64 end_time);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_VISUALIZER_TICKS_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-visualizer-view"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "sp-theme-manager.h"
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_VISUALIZER_VIEW_H
|
||||
#define SP_VISUALIZER_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <sysprof.h>
|
||||
@ -27,11 +26,13 @@
|
||||
#include "sp-visualizer-row.h"
|
||||
#include "sp-selection.h"
|
||||
#include "sp-zoom-manager.h"
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_VISUALIZER_VIEW (sp_visualizer_view_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_DERIVABLE_TYPE (SpVisualizerView, sp_visualizer_view, SP, VISUALIZER_VIEW, GtkBin)
|
||||
|
||||
struct _SpVisualizerViewClass
|
||||
@ -61,15 +62,19 @@ struct _SpVisualizerViewClass
|
||||
gpointer _reserved16;
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GtkWidget *sp_visualizer_view_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpCaptureReader *sp_visualizer_view_get_reader (SpVisualizerView *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_visualizer_view_set_reader (SpVisualizerView *self,
|
||||
SpCaptureReader *reader);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpZoomManager *sp_visualizer_view_get_zoom_manager (SpVisualizerView *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_visualizer_view_set_zoom_manager (SpVisualizerView *self,
|
||||
SpZoomManager *zoom_manager);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpSelection *sp_visualizer_view_get_selection (SpVisualizerView *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_VISUALIZER_VIEW_H */
|
||||
|
||||
@ -20,6 +20,8 @@
|
||||
|
||||
#define G_LOG_DOMAIN "sp-zoom-manager"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
|
||||
@ -18,33 +18,45 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SP_ZOOM_MANAGER_H
|
||||
#define SP_ZOOM_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "sysprof-version-macros.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SP_TYPE_ZOOM_MANAGER (sp_zoom_manager_get_type())
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
G_DECLARE_FINAL_TYPE (SpZoomManager, sp_zoom_manager, SP, ZOOM_MANAGER, GObject)
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
SpZoomManager *sp_zoom_manager_new (void);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sp_zoom_manager_get_can_zoom_in (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sp_zoom_manager_get_can_zoom_out (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sp_zoom_manager_get_min_zoom (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gboolean sp_zoom_manager_get_max_zoom (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_set_min_zoom (SpZoomManager *self,
|
||||
gdouble min_zoom);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_set_max_zoom (SpZoomManager *self,
|
||||
gdouble max_zoom);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_zoom_in (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_zoom_out (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_reset (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gdouble sp_zoom_manager_get_zoom (SpZoomManager *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
void sp_zoom_manager_set_zoom (SpZoomManager *self,
|
||||
gdouble zoom);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SP_ZOOM_MANAGER_H */
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef SYSPROF_UI_H
|
||||
#define SYSPROF_UI_H
|
||||
#pragma once
|
||||
|
||||
#include <sysprof.h>
|
||||
|
||||
@ -47,5 +46,3 @@ G_BEGIN_DECLS
|
||||
#undef SYSPROF_UI_INSIDE
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* SYSPROF_UI_H */
|
||||
|
||||
Reference in New Issue
Block a user