mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Allow to specify multiple content files.
This commit is contained in:
parent
045602581e
commit
99420cffab
10 changed files with 232 additions and 107 deletions
15
elem.c
15
elem.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue