forked from len0rd/rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7039 a1c6a512-1295-4272-9138-f99709370657
37 lines
579 B
C
37 lines
579 B
C
#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
|