Update documentation for sonic.c / sonic.h

This commit is contained in:
Fufu Fang 2019-10-28 12:50:33 +00:00
parent ea13c175cd
commit 12a2f87ada
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
2 changed files with 3 additions and 3 deletions

View File

@ -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])) {

View File

@ -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
*/