Migrate file metadata encoding to DMAP common code

This commit is contained in:
Julien BLACHE
2011-04-02 15:07:26 +02:00
parent 07df6bb4aa
commit 718d1e9487
4 changed files with 162 additions and 145 deletions

View File

@@ -5,6 +5,8 @@
#include <event.h>
#include "evhttp/evhttp.h"
#include "db.h"
enum dmap_type
{
DMAP_TYPE_UBYTE = 0x01,
@@ -35,9 +37,6 @@ struct dmap_field {
};
extern const struct dmap_field_map dfm_dmap_mikd;
extern const struct dmap_field_map dfm_dmap_asdk;
extern const struct dmap_field_map dfm_dmap_ascd;
extern const struct dmap_field_map dfm_dmap_mimc;
extern const struct dmap_field_map dfm_dmap_aeSP;
@@ -78,4 +77,8 @@ dmap_add_field(struct evbuffer *evbuf, const struct dmap_field *df, char *strval
void
dmap_send_error(struct evhttp_request *req, char *container, char *errmsg);
int
dmap_encode_file_metadata(struct evbuffer *songlist, struct evbuffer *song, struct db_media_file_info *dbmfi, const struct dmap_field **meta, int nmeta, int force_wav);
#endif /* !__DMAP_HELPERS_H__ */