Add a new force_sort_criteria option, to globally override the SortCriteria value sent by the client.

This commit is contained in:
Justin Maggard
2014-01-07 11:30:15 -08:00
parent a75bdadce1
commit 3f4877cf2f
8 changed files with 36 additions and 8 deletions

View File

@ -62,7 +62,7 @@ time_t startup_time = 0;
struct runtime_vars_s runtime_vars;
uint32_t runtime_flags = INOTIFY_MASK;
const char * pidfilename = "/var/run/minidlna/minidlna.pid";
const char *pidfilename = "/var/run/minidlna/minidlna.pid";
char uuidvalue[] = "uuid:00000000-0000-0000-0000-000000000000";
char modelname[MODELNAME_MAX_LEN] = ROOTDEV_MODELNAME;
@ -83,7 +83,7 @@ struct lan_addr_s lan_addr[MAX_LAN_ADDR];
const char * minissdpdsocketpath = "/var/run/minissdpd.sock";
/* UPnP-A/V [DLNA] */
sqlite3 * db;
sqlite3 *db;
char friendly_name[FRIENDLYNAME_MAX_LEN];
char db_path[PATH_MAX] = {'\0'};
char log_path[PATH_MAX] = {'\0'};
@ -92,3 +92,4 @@ struct album_art_name_s * album_art_names = NULL;
short int scanning = 0;
volatile short int quitting = 0;
volatile uint32_t updateID = 0;
const char *force_sort_criteria = NULL;