mirror of
https://github.com/siemens-mobile-hacks/libpd.git
synced 2026-11-25 23:57:45 +00:00
Add size getters
This commit is contained in:
parent
3fff02d397
commit
05361f271d
2 changed files with 16 additions and 0 deletions
12
src/pd.c
12
src/pd.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
4
src/pd.h
4
src/pd.h
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue