minidlna/metadata.h
Justin Maggard 74d73037d0 Lots of changes, but notably:
* MiniDLNA can now pass the DLNA Conformance Test!
 * Dependence on libdlna has been removed, and the ffmpeg libs are used directly.
 * Lots of unused code has been cleaned up.
 * File transfers will now be forked off into a new process, so as not to tie up the server when sending data.
2009-01-22 00:25:20 +00:00

59 lines
1.1 KiB
C

/* Metadata extraction
*
* Project : minidlna
* Website : http://sourceforge.net/projects/minidlna/
* Author : Justin Maggard
* Copyright (c) 2008 Justin Maggard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#ifndef __METADATA_H__
#define __METADATA_H__
typedef struct metadata_s {
char *title;
char *artist;
char *album;
char *genre;
char *comment;
char *channels;
char *bitrate;
char *frequency;
char *bps;
char *resolution;
char *duration;
char *mime;
char *dlna_pn;
} metadata_t;
typedef struct tsinfo_s {
int x;
int packet_size;
} tsinfo_t;
typedef enum {
NONE,
EMPTY,
VALID
} ts_timestamp_t;
int
ends_with(const char * haystack, const char * needle);
char *
modifyString(char * string, const char * before, const char * after, short like);
sqlite_int64
GetFolderMetadata(const char * name, const char * artist);
sqlite_int64
GetAudioMetadata(const char * path, char * name);
sqlite_int64
GetImageMetadata(const char * path, char * name);
sqlite_int64
GetVideoMetadata(const char * path, char * name);
#endif