id3dev 26.01
An ID3 metadata library
Loading...
Searching...
No Matches
id3v1Parser.h
Go to the documentation of this file.
1
11#ifndef ID3V1_PARSER
12#define ID3V1_PARSER
13
14#ifdef __cplusplus
15extern "C"{
16#endif
17
18#include "id3v1Types.h"
19
20//mem
21
22bool id3v1HasTag(const uint8_t *buffer);
23
24Id3v1Tag *id3v1CreateTag(uint8_t *title, uint8_t *artist, uint8_t *albumTitle, int year, int track, uint8_t *comment,
25 Genre genre);
26
27void id3v1ClearTag(Id3v1Tag *tag);
28
29void id3v1DestroyTag(Id3v1Tag **toDelete);
30
31//parse
32Id3v1Tag *id3v1TagFromBuffer(uint8_t *buffer);
33
34#ifdef __cplusplus
35} //extern c end
36#endif
37
38#endif
void id3v1DestroyTag(Id3v1Tag **toDelete)
Frees an Id3v1Tag and nullifies the pointer.
void id3v1ClearTag(Id3v1Tag *tag)
Resets all tag fields to their default empty state.
Definition id3v1Parser.c:82
Id3v1Tag * id3v1TagFromBuffer(uint8_t *buffer)
Parses an ID3V1_MAX_SIZE buffer into an Id3v1Tag structure.
bool id3v1HasTag(const uint8_t *buffer)
Checks if a buffer contains a valid ID3v1 tag identifier.
Definition id3v1Parser.c:25
Id3v1Tag * id3v1CreateTag(uint8_t *title, uint8_t *artist, uint8_t *albumTitle, int year, int track, uint8_t *comment, Genre genre)
Creates and allocates a new Id3v1Tag structure.
Definition id3v1Parser.c:41
Definitions for ID3v1 tag structure, constants, and genre enumeration.
enum _Genre Genre
ID3v1 genre enumeration with Winamp extensions (genres 0-191).
struct _Id3v1Tag Id3v1Tag
ID3v1/ID3v1.1 tag structure containing all metadata fields.