blob: be29581a09ce2222a45b6add6a2513ca89e55450 (
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
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef __DB_H__
#define __DB_H__
#include "config.h"
#include <stdio.h>
#include "array_buffer.h"
struct tag_info {
char* directory;
char* filename; // \0 terminated string's
char* song;
char* artist;
char* album;
char* genre;
uint16_t bitrate;
uint16_t year;
uint32_t playtime;
uint16_t track;
uint16_t samplerate;
};
int db_construct();
int db_destruct();
int db_add(char* file_path, const char* strip_path, const char* add_path);
int db_sort();
int db_write(FILE *fd);
struct tag_info* new_tag_info();
int tag_info_destruct(struct tag_info *t);
#endif
|