mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add an API to config.h for creating values in the config_tree mempool.
This commit is contained in:
parent
3c238baf03
commit
cc6032956f
@ -1419,6 +1419,12 @@ struct config_node *create_config_node(struct config_tree *cft, const char *key)
|
||||
return cn;
|
||||
}
|
||||
|
||||
struct config_value *create_config_value(struct config_tree *cft)
|
||||
{
|
||||
struct cs *c = (struct cs *) cft;
|
||||
return _create_value(c->mem);
|
||||
}
|
||||
|
||||
struct dm_pool *config_tree_memory(struct config_tree *cft)
|
||||
{
|
||||
struct cs *c = (struct cs *) cft;
|
||||
|
@ -124,6 +124,7 @@ struct config_node *clone_config_node_with_mem(struct dm_pool *mem,
|
||||
const struct config_node *node,
|
||||
int siblings);
|
||||
struct config_node *create_config_node(struct config_tree *cft, const char *key);
|
||||
struct config_value *create_config_value(struct config_tree *cft);
|
||||
struct config_node *clone_config_node(struct config_tree *cft, const struct config_node *cn,
|
||||
int siblings);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user