diff options
author | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
commit | e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1 (patch) | |
tree | 197a579049ddab74d8944939a45f8e0d46b6c3cf /lib/format_text/import-export.h | |
parent | d35188058be01bd29128dcf1f5b79220fbcb135b (diff) | |
download | lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.gz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.xz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.zip |
Move the core of the lib/config/config.c functionality into libdevmapper,
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
Diffstat (limited to 'lib/format_text/import-export.h')
-rw-r--r-- | lib/format_text/import-export.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/format_text/import-export.h b/lib/format_text/import-export.h index 3b56f086..4ecbf9b6 100644 --- a/lib/format_text/import-export.h +++ b/lib/format_text/import-export.h @@ -44,14 +44,14 @@ enum { }; struct text_vg_version_ops { - int (*check_version) (const struct config_tree * cf); + int (*check_version) (const struct dm_config_tree * cf); struct volume_group *(*read_vg) (struct format_instance * fid, - const struct config_tree *cf, + const struct dm_config_tree *cf, unsigned use_cached_pvs); - void (*read_desc) (struct dm_pool * mem, const struct config_tree *cf, + void (*read_desc) (struct dm_pool * mem, const struct dm_config_tree *cf, time_t *when, char **desc); const char *(*read_vgname) (const struct format_type *fmt, - const struct config_tree *cft, + const struct dm_config_tree *cft, struct id *vgid, uint64_t *vgstatus, char **creation_host); }; @@ -59,10 +59,10 @@ struct text_vg_version_ops { struct text_vg_version_ops *text_vg_vsn1_init(void); int print_flags(uint64_t status, int type, char *buffer, size_t size); -int read_flags(uint64_t *status, int type, const struct config_value *cv); +int read_flags(uint64_t *status, int type, const struct dm_config_value *cv); char *alloc_printed_tags(struct dm_list *tags); -int read_tags(struct dm_pool *mem, struct dm_list *tags, const struct config_value *cv); +int read_tags(struct dm_pool *mem, struct dm_list *tags, const struct dm_config_value *cv); int text_vg_export_file(struct volume_group *vg, const char *desc, FILE *fp); int text_vg_export_raw(struct volume_group *vg, const char *desc, char **buf); |