summaryrefslogtreecommitdiff
path: root/apps/tagdb/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagdb/db.h')
-rw-r--r--apps/tagdb/db.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/tagdb/db.h b/apps/tagdb/db.h
new file mode 100644
index 0000000000..be29581a09
--- /dev/null
+++ b/apps/tagdb/db.h
@@ -0,0 +1,37 @@
1#ifndef __DB_H__
2#define __DB_H__
3
4#include "config.h"
5#include <stdio.h>
6
7#include "array_buffer.h"
8
9struct tag_info {
10 char* directory;
11 char* filename; // \0 terminated string's
12 char* song;
13 char* artist;
14 char* album;
15 char* genre;
16 uint16_t bitrate;
17 uint16_t year;
18 uint32_t playtime;
19 uint16_t track;
20 uint16_t samplerate;
21};
22
23int db_construct();
24
25int db_destruct();
26
27int db_add(char* file_path, const char* strip_path, const char* add_path);
28
29int db_sort();
30
31int db_write(FILE *fd);
32
33struct tag_info* new_tag_info();
34
35int tag_info_destruct(struct tag_info *t);
36
37#endif