From 12a2f87adad6d5a790ea628e2f0f65e684aaf643 Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Mon, 28 Oct 2019 12:50:33 +0000 Subject: [PATCH] Update documentation for sonic.c / sonic.h --- src/sonic.c | 4 ++-- src/sonic.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sonic.c b/src/sonic.c index e29afaa..9d898d7 100644 --- a/src/sonic.c +++ b/src/sonic.c @@ -190,7 +190,7 @@ static void XMLCALL XML_parser_general(void *data, const char *elem, } else if (!strcmp(elem, "album") && linktbl->links[0]->sonic_depth == 3) { link = CALLOC(1, sizeof(Link)); link->type = LINK_DIR; - /* This table should be a level 3 album table */ + /* The new table should be a level 4 song table */ link->sonic_depth = 4; } else if (!strcmp(elem, "song") && linktbl->links[0]->sonic_depth == 4) { link = CALLOC(1, sizeof(Link)); @@ -394,7 +394,7 @@ static void XMLCALL XML_parser_id3_root(void *data, const char *elem, } else if (!strcmp(elem, "artist")) { link = CALLOC(1, sizeof(Link)); link->type = LINK_DIR; - /* This table should be a level 3 album table */ + /* The new table should be a level 3 album table */ link->sonic_depth = 3; for (int i = 0; attr[i]; i += 2) { if (!strcmp("name", attr[i])) { diff --git a/src/sonic.h b/src/sonic.h index abecf76..052519b 100644 --- a/src/sonic.h +++ b/src/sonic.h @@ -26,7 +26,7 @@ LinkTable *sonic_LinkTable_new_index(const char *id); * 2. Artist table * 3. Album table * 4. Song table - * 5. Individual song + * 5. Individual song (not a table) * \param[in] depth the level of the requested table * \param[in] id the id of the requested table */