summaryrefslogtreecommitdiff
path: root/tag.h
blob: 004198a64b124d06c9cd6a79253025ae7fd90739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TAG_H
#define TAG_H

#include <glib.h>

enum tag_type {
	TAG_TYPE_ARTIST,
	TAG_TYPE_ALBUM,
	TAG_TYPE_TITLE,
};

struct tag_field {
	enum tag_type type;
	gchar *string;
};

struct tag {
	GSList *fields;
};

void tag_list_all(const gchar *path);
struct tag *tag_read(const gchar *path);
const gchar *tag_get(struct tag *tag, enum tag_type type);

#endif