1
0
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:
Petr Rockai 2011-07-19 19:11:24 +00:00
parent 3c238baf03
commit cc6032956f
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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);