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
15 extern "C"{
16#endif
17
18#include "id3v1Types.h"
19
20//mem
21
22 bool id3v1HasTag(const uint8_t *buffer);
23
24 Id3v1Tag *id3v1CreateTag(uint8_t *title, uint8_t *artist, uint8_t *albumTitle, int year, int track, uint8_t *comment,
25 Genre genre);
26
27 void id3v1ClearTag(Id3v1Tag *tag);
28
29 void id3v1DestroyTag(Id3v1Tag **toDelete);
30
31//parse
32 Id3v1Tag *id3v1TagFromBuffer(uint8_t *buffer);
33
34#ifdef __cplusplus
35} //extern c end
36#endif
37
38#endif
id3v1DestroyTag
void id3v1DestroyTag(Id3v1Tag **toDelete)
Frees an Id3v1Tag and nullifies the pointer.
Definition id3v1Parser.c:102
id3v1ClearTag
void id3v1ClearTag(Id3v1Tag *tag)
Resets all tag fields to their default empty state.
Definition id3v1Parser.c:82
id3v1TagFromBuffer
Id3v1Tag * id3v1TagFromBuffer(uint8_t *buffer)
Parses an ID3V1_MAX_SIZE buffer into an Id3v1Tag structure.
Definition id3v1Parser.c:119
id3v1HasTag
bool id3v1HasTag(const uint8_t *buffer)
Checks if a buffer contains a valid ID3v1 tag identifier.
Definition id3v1Parser.c:25
id3v1CreateTag
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
id3v1Types.h
Definitions for ID3v1 tag structure, constants, and genre enumeration.
Genre
enum _Genre Genre
ID3v1 genre enumeration with Winamp extensions (genres 0-191).
Id3v1Tag
struct _Id3v1Tag Id3v1Tag
ID3v1/ID3v1.1 tag structure containing all metadata fields.