conf-parser: expose config_section_{hash,compare}_func()

They will be used in later commits.
This commit is contained in:
Yu Watanabe
2024-01-04 04:58:36 +09:00
parent aea57b1415
commit b46d1694c4
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -795,12 +795,12 @@ bool stats_by_path_equal(Hashmap *a, Hashmap *b) {
return true;
}
static void config_section_hash_func(const ConfigSection *c, struct siphash *state) {
void config_section_hash_func(const ConfigSection *c, struct siphash *state) {
siphash24_compress_string(c->filename, state);
siphash24_compress_typesafe(c->line, state);
}
static int config_section_compare_func(const ConfigSection *x, const ConfigSection *y) {
int config_section_compare_func(const ConfigSection *x, const ConfigSection *y) {
int r;
r = strcmp(x->filename, y->filename);