Allow to specify multiple content files.

This commit is contained in:
Andrea Mazzoleni 2011-04-25 13:43:51 +02:00
parent 045602581e
commit 99420cffab
10 changed files with 232 additions and 107 deletions

18
elem.h
View file

@ -44,6 +44,14 @@ typedef uint32_t block_off_t;
*/
typedef int64_t data_off_t;
/**
* Content file specification.
*/
struct snapraid_content {
char content[PATH_MAX]; /**< Path of the content file. */
tommy_node node; /**< Next node in the list. */
};
/**
* Filter for paths.
*/
@ -99,6 +107,16 @@ struct snapraid_disk {
tommy_array blockarr; /**< Block array of the disk. */
};
/**
* Allocates a content.
*/
struct snapraid_content* content_alloc(const char* path);
/**
* Deallocates a content.
*/
void content_free(struct snapraid_content* content);
/**
* Allocates an exclusion.
*/