mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-14 15:33:15 +03:00
Add an API to config.h for creating values in the config_tree mempool.
This commit is contained in:
@@ -1419,6 +1419,12 @@ struct config_node *create_config_node(struct config_tree *cft, const char *key)
|
|||||||
return cn;
|
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 dm_pool *config_tree_memory(struct config_tree *cft)
|
||||||
{
|
{
|
||||||
struct cs *c = (struct cs *) 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,
|
const struct config_node *node,
|
||||||
int siblings);
|
int siblings);
|
||||||
struct config_node *create_config_node(struct config_tree *cft, const char *key);
|
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,
|
struct config_node *clone_config_node(struct config_tree *cft, const struct config_node *cn,
|
||||||
int siblings);
|
int siblings);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user