diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-02-27 13:59:28 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-02-27 13:59:28 +0100 |
| commit | 66dd37c0018bd958ea1a644e3552bce66b13f658 (patch) | |
| tree | a55e352da7926abc235a1e1c040f64f2c5a4c388 /src/tag.c | |
| parent | 5d8e3d19823a3c193b0ad4e8d8fd3ccdf8f77c80 (diff) | |
| download | tmus-66dd37c0018bd958ea1a644e3552bce66b13f658.tar.gz tmus-66dd37c0018bd958ea1a644e3552bce66b13f658.zip | |
Switch from mostly ref based tracking to multi-link architecture
Diffstat (limited to 'src/tag.c')
| -rw-r--r-- | src/tag.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/tag.c b/src/tag.c deleted file mode 100644 index aa4a266..0000000 --- a/src/tag.c +++ /dev/null @@ -1,38 +0,0 @@ -#include "tag.h" - -#include "link.h" -#include "ref.h" -#include "util.h" - -#include <string.h> - -struct tag * -tag_alloc(const char *path, const char *fname) -{ - struct tag *tag; - int len; - - tag = malloc(sizeof(struct tag)); - ASSERT(tag != NULL); - - tag->fpath = aprintf("%s/%s", path, fname); - ASSERT(tag->fpath != NULL); - - tag->name = strdup(fname); - ASSERT(tag->name != NULL); - - tag->link = LINK_EMPTY; - - list_init(&tag->tracks); - - return tag; -} - -void -tag_free(struct tag *tag) -{ - free(tag->fpath); - free(tag->name); - refs_free(&tag->tracks); - free(tag); -} |
