Add size getters

This commit is contained in:
Philip Minakov 2026-03-11 13:14:22 +04:00
parent 3fff02d397
commit 05361f271d
No known key found for this signature in database
GPG key ID: 932F1B884934DB0F
2 changed files with 16 additions and 0 deletions

View file

@ -268,3 +268,15 @@ void pd_free_nodes(pd_node_t **nodes) {
free(nodes);
}
}
int pd_get_max_group_size() {
return PD_MAX_GROUP_SIZE;
}
int pd_get_max_key_size() {
return PD_MAX_KEY_SIZE;
}
int pd_get_max_value_size() {
return PD_MAX_VALUE_SIZE;
}

View file

@ -28,3 +28,7 @@ pd_node_t *pd_alloc_string_node(const char *group, const char *key, const char *
int pd_read_file(const char *file_name, pd_node_t ***nodes);
int pd_write_file(const char *file_name, const pd_node_t **nodes);
void pd_free_nodes(pd_node_t **nodes);
int pd_get_max_group_size();
int pd_get_max_key_size();
int pd_get_max_value_size();