* Consolidate client detection code.

* Add forced sorting support for Panasonic devices.
This commit is contained in:
Justin Maggard
2013-03-18 05:37:46 +00:00
parent bc33a34331
commit 1c748c1d5a
12 changed files with 436 additions and 265 deletions

View File

@ -30,7 +30,8 @@
#define __MINIDLNATYPES_H__
#include "config.h"
#include <netinet/in.h>
#include "clients.h"
//#include <netinet/in.h>
#include <time.h>
#include <fcntl.h>
@ -66,28 +67,6 @@ enum file_types {
TYPE_FILE
};
enum client_types {
EXbox = 1,
EPS3,
ESamsungSeriesC,
EDenonReceiver,
EFreeBox,
EPopcornHour,
EMediaRoom,
ESonyBDP,
ESonyBravia,
ERokuSoundBridge,
EToshibaTV,
ELGDevice,
ENetgearEVA2000,
ESamsungSeriesA,
ESamsungSeriesB,
EMarantzDMP,
ELifeTab,
EDirecTV,
EStandardDLNA150 = 100
};
struct media_dir_s {
char *path; /* base path */
media_types types; /* types of files to scan */
@ -100,12 +79,4 @@ struct album_art_name_s {
struct album_art_name_s *next;
};
struct client_cache_s {
struct in_addr addr;
unsigned char mac[6];
enum client_types type;
uint32_t flags;
time_t age;
};
#endif