mirror of
https://github.com/fangfufu/httpdirfs.git
synced 2024-09-27 20:51:55 +02:00
Update documentation for sonic.c / sonic.h
This commit is contained in:
parent
ea13c175cd
commit
12a2f87ada
@ -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) {
|
} else if (!strcmp(elem, "album") && linktbl->links[0]->sonic_depth == 3) {
|
||||||
link = CALLOC(1, sizeof(Link));
|
link = CALLOC(1, sizeof(Link));
|
||||||
link->type = LINK_DIR;
|
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;
|
link->sonic_depth = 4;
|
||||||
} else if (!strcmp(elem, "song") && linktbl->links[0]->sonic_depth == 4) {
|
} else if (!strcmp(elem, "song") && linktbl->links[0]->sonic_depth == 4) {
|
||||||
link = CALLOC(1, sizeof(Link));
|
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")) {
|
} else if (!strcmp(elem, "artist")) {
|
||||||
link = CALLOC(1, sizeof(Link));
|
link = CALLOC(1, sizeof(Link));
|
||||||
link->type = LINK_DIR;
|
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;
|
link->sonic_depth = 3;
|
||||||
for (int i = 0; attr[i]; i += 2) {
|
for (int i = 0; attr[i]; i += 2) {
|
||||||
if (!strcmp("name", attr[i])) {
|
if (!strcmp("name", attr[i])) {
|
||||||
|
@ -26,7 +26,7 @@ LinkTable *sonic_LinkTable_new_index(const char *id);
|
|||||||
* 2. Artist table
|
* 2. Artist table
|
||||||
* 3. Album table
|
* 3. Album table
|
||||||
* 4. Song table
|
* 4. Song table
|
||||||
* 5. Individual song
|
* 5. Individual song (not a table)
|
||||||
* \param[in] depth the level of the requested table
|
* \param[in] depth the level of the requested table
|
||||||
* \param[in] id the id of the requested table
|
* \param[in] id the id of the requested table
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user