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

15
elem.c
View file

@ -23,6 +23,21 @@
/****************************************************************************/
/* snapraid */
struct snapraid_content* content_alloc(const char* path)
{
struct snapraid_content* content;
content = malloc_nofail(sizeof(struct snapraid_content));
pathcpy(content->content, sizeof(content->content), path);
return content;
}
void content_free(struct snapraid_content* content)
{
free(content);
}
struct snapraid_filter* filter_alloc(const char* pattern)
{
struct snapraid_filter* filter;