libsysprof-analyze: use ref strings internally

This gives us a bit more control than the string chunk, so long as we can
rely on the allocator to do something nice.
This commit is contained in:
Christian Hergert
2023-05-02 13:30:09 -07:00
parent ffb6533e02
commit 4505e8bb85
2 changed files with 20 additions and 10 deletions

View File

@ -20,9 +20,11 @@
#pragma once
#include "sysprof-document.h"
G_BEGIN_DECLS
const char *sysprof_document_intern_string (SysprofDocument *self,
const char *name);
char *_sysprof_document_ref_string (SysprofDocument *self,
const char *name);
G_END_DECLS