libsysprof-analyze: rename ctor for node

That way we can have an alternate way of creating these that does not
require using a SysprofCallgraphNode.
This commit is contained in:
Christian Hergert
2023-06-12 12:12:53 -07:00
parent 4e9615571b
commit c8c307cb96
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
SysprofCallgraphFrame *_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph, SysprofCallgraphFrame *_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph,
SysprofCallgraphNode *node); SysprofCallgraphNode *node);
G_END_DECLS G_END_DECLS

View File

@ -73,7 +73,7 @@ sysprof_callgraph_frame_get_item (GListModel *model,
if (iter == NULL) if (iter == NULL)
return NULL; return NULL;
return _sysprof_callgraph_frame_new (self->callgraph, iter); return _sysprof_callgraph_frame_new_for_node (self->callgraph, iter);
} }
static void static void
@ -150,8 +150,8 @@ sysprof_callgraph_frame_init (SysprofCallgraphFrame *self)
} }
SysprofCallgraphFrame * SysprofCallgraphFrame *
_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph, _sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph,
SysprofCallgraphNode *node) SysprofCallgraphNode *node)
{ {
SysprofCallgraphFrame *self; SysprofCallgraphFrame *self;

View File

@ -53,7 +53,7 @@ sysprof_callgraph_get_item (GListModel *model,
if (position > 0) if (position > 0)
return NULL; return NULL;
return _sysprof_callgraph_frame_new (self, &self->root); return _sysprof_callgraph_frame_new_for_node (self, &self->root);
} }
static void static void