libsysprof-analyze: add sysprof_symbol_hash() for hash tables

This commit is contained in:
Christian Hergert
2023-06-12 17:21:41 -07:00
parent a3df31c246
commit 465b0e1613
2 changed files with 8 additions and 0 deletions

View File

@ -170,3 +170,9 @@ sysprof_symbol_equal (const SysprofSymbol *a,
{
return _sysprof_symbol_equal (a, b);
}
guint
sysprof_symbol_hash (const SysprofSymbol *self)
{
return self->hash;
}

View File

@ -39,6 +39,8 @@ const char *sysprof_symbol_get_binary_nick (SysprofSymbol *self);
SYSPROF_AVAILABLE_IN_ALL
const char *sysprof_symbol_get_binary_path (SysprofSymbol *self);
SYSPROF_AVAILABLE_IN_ALL
guint sysprof_symbol_hash (const SysprofSymbol *self);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_symbol_equal (const SysprofSymbol *a,
const SysprofSymbol *b);