From c8c307cb963ef8da4c42c31ae051d0d2f2fa5f35 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 12 Jun 2023 12:12:53 -0700 Subject: [PATCH] libsysprof-analyze: rename ctor for node That way we can have an alternate way of creating these that does not require using a SysprofCallgraphNode. --- src/libsysprof-analyze/sysprof-callgraph-frame-private.h | 4 ++-- src/libsysprof-analyze/sysprof-callgraph-frame.c | 6 +++--- src/libsysprof-analyze/sysprof-callgraph.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libsysprof-analyze/sysprof-callgraph-frame-private.h b/src/libsysprof-analyze/sysprof-callgraph-frame-private.h index a33c68db..0d2814e5 100644 --- a/src/libsysprof-analyze/sysprof-callgraph-frame-private.h +++ b/src/libsysprof-analyze/sysprof-callgraph-frame-private.h @@ -25,7 +25,7 @@ G_BEGIN_DECLS -SysprofCallgraphFrame *_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph, - SysprofCallgraphNode *node); +SysprofCallgraphFrame *_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph, + SysprofCallgraphNode *node); G_END_DECLS diff --git a/src/libsysprof-analyze/sysprof-callgraph-frame.c b/src/libsysprof-analyze/sysprof-callgraph-frame.c index 8ba1ba13..33992402 100644 --- a/src/libsysprof-analyze/sysprof-callgraph-frame.c +++ b/src/libsysprof-analyze/sysprof-callgraph-frame.c @@ -73,7 +73,7 @@ sysprof_callgraph_frame_get_item (GListModel *model, if (iter == NULL) return NULL; - return _sysprof_callgraph_frame_new (self->callgraph, iter); + return _sysprof_callgraph_frame_new_for_node (self->callgraph, iter); } static void @@ -150,8 +150,8 @@ sysprof_callgraph_frame_init (SysprofCallgraphFrame *self) } SysprofCallgraphFrame * -_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph, - SysprofCallgraphNode *node) +_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph, + SysprofCallgraphNode *node) { SysprofCallgraphFrame *self; diff --git a/src/libsysprof-analyze/sysprof-callgraph.c b/src/libsysprof-analyze/sysprof-callgraph.c index 0e5be21a..593bfc20 100644 --- a/src/libsysprof-analyze/sysprof-callgraph.c +++ b/src/libsysprof-analyze/sysprof-callgraph.c @@ -53,7 +53,7 @@ sysprof_callgraph_get_item (GListModel *model, if (position > 0) return NULL; - return _sysprof_callgraph_frame_new (self, &self->root); + return _sysprof_callgraph_frame_new_for_node (self, &self->root); } static void