Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
g3gg0 committed Aug 30, 2023
1 parent 3da68e9 commit d57c956
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/toniefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ static void comment_add(uint8_t *buffer, size_t *length, const char *str)
*length += strlen(str);
}

static void generate_taf_header(uint8_t *buffer, size_t *length, TonieboxAudioFileHeader *tafHeader)
void generate_taf_header(uint8_t *buffer, size_t *length, TonieboxAudioFileHeader *tafHeader)
{
/*
TonieboxAudioFileHeader tafHeaderS = TONIEBOX_AUDIO_FILE_HEADER__INIT;
tafHeaderS.n_track_page_nums = 0;
tafHeaderS.track_page_nums = malloc(sizeof(uint32_t) * 99);
tafHeaderS.track_page_nums[tafHeaderS.n_track_page_nums++] = 1234;
*/
size_t dataLen = tonie_freshness_check_request__get_packed_size(tafHeader);
if (dataLength <= length)
*/
size_t dataLength = toniebox_audio_file_header__get_packed_size(tafHeader);
if (dataLength <= *length)
{
tonie_freshness_check_request__pack(tafHeader, buffer);
toniebox_audio_file_header__pack(tafHeader, buffer);
}
tonie_freshness_check_request__free_unpacked(tafHeader, NULL);
toniebox_audio_file_header__free_unpacked(tafHeader, NULL);
}

toniefile_t *toniefile_create(const char *fullPath)
Expand Down

0 comments on commit d57c956

Please sign in to comment.