1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-06 21:49:28 +03:00

report: select: refactor: move str_list to libdm

The list of strings is used quite frequently and we'd like to reuse
this simple structure for report selection support too. Make it part
of libdevmapper for general reuse throughout the code.

This also simplifies the LVM code a bit since we don't need to
include and manage lvm-types.h anymore (the string list was the
only structure defined there).
This commit is contained in:
Peter Rajnoha
2014-05-29 09:41:03 +02:00
parent fe952e735a
commit 5abdb52fdc
33 changed files with 51 additions and 84 deletions

View File

@ -22,7 +22,7 @@ struct dm_list *tag_list_copy(struct dm_pool *p, struct dm_list *tag_list)
{
struct dm_list *list;
lvm_str_list_t *lsl;
struct str_list *sl;
struct dm_str_list *sl;
if (!(list = dm_pool_zalloc(p, sizeof(*list)))) {
log_errno(ENOMEM, "Memory allocation fail for dm_list.");