mod_musicindex  1.4.1
playlist-flac.h File Reference
#include "mod_musicindex.h"

Go to the source code of this file.


mu_entmake_flac_entry (request_rec *r, apr_pool_t *pool, FILE *const in, const char *const filename)
 Fills in the information fields about FLAC data.

Function Documentation

mu_ent* make_flac_entry ( request_rec *  r,
apr_pool_t pool,
FILE *const  in,
const char *const  filename 

Fills in the information fields about FLAC data.

This function reads the ogg tags (using libFLAC) from the flac file in and fills in the struct mu_ent fields accordingly. If the file is not an ogg one, the function returns head.

inogg file to parse (closed on normal exit)
filenamecurrent filename
rApache request_rec struct to handle log writings (debugging)
When possible, struct mu_ent correctly set up, file stream closed.

Definition at line 74 of file playlist-flac.c.

References mu_ent::album, apr_pstrndup, mu_ent::artist, mu_ent::bitrate, mu_ent::date, EF_VBR, mu_ent::filetype, flac_ext_check(), mu_ent::flags, mu_ent::freq, FT_FLAC, mu_ent::length, MI_QUICKPL, mu_ent::mtime, musicindex_module, NEW_ENT, mu_config::options, mu_ent::posn, mu_ent::size, mu_ent::title, and mu_ent::track.