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
SysprofCallgraphFrame *_sysprof_callgraph_frame_new (SysprofCallgraph *callgraph,
SysprofCallgraphNode *node);
SysprofCallgraphFrame *_sysprof_callgraph_frame_new_for_node (SysprofCallgraph *callgraph,
SysprofCallgraphNode *node);
G_END_DECLS

View File

@ -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;

View File

@ -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