1/* MiniDLNA project 2 * http://minidlna.sourceforge.net/ 3 * (c) 2008-2009 Justin Maggard 4 * 5 * This software is subject to the conditions detailed 6 * in the LICENCE file provided within the distribution 7 * 8 * Portions of the code from the MiniUPnP Project 9 * (c) Thomas Bernard licensed under BSD revised license 10 * detailed in the LICENSE.miniupnpd file provided within 11 * the distribution. 12 */ 13#include <sys/types.h> 14#include <netinet/in.h> 15#include <linux/limits.h> 16 17#include "config.h" 18#include "upnpglobalvars.h" 19 20/* LAN address */ 21/*const char * listen_addr = 0;*/ 22 23/* startup time */ 24time_t startup_time = 0; 25 26struct runtime_vars_s runtime_vars; 27int runtime_flags = INOTIFY_MASK; 28 29const char * pidfilename = "/var/run/minidlna.pid"; 30 31char uuidvalue[] = "uuid:00000000-0000-0000-0000-000000000000"; 32char serialnumber[SERIALNUMBER_MAX_LEN] = "00000000"; 33 34char modelnumber[MODELNUMBER_MAX_LEN] = "1"; 35 36/* presentation url : 37 * http://nnn.nnn.nnn.nnn:ppppp/ => max 30 bytes including terminating 0 */ 38char presentationurl[PRESENTATIONURL_MAX_LEN]; 39 40char device_url[PRESENTATIONURL_MAX_LEN]; 41 42int n_lan_addr = 0; 43struct lan_addr_s lan_addr[MAX_LAN_ADDR]; 44 45/* UPnP-A/V [DLNA] */ 46sqlite3 * db; 47char dlna_no_conv[] = "DLNA.ORG_OP=01;DLNA.ORG_CI=0"; 48char friendly_name[FRIENDLYNAME_MAX_LEN]; 49char db_path[PATH_MAX] = DEFAULT_DB_PATH; 50struct media_dir_s * media_dirs = NULL; 51struct album_art_name_s * album_art_names = NULL; 52struct client_cache_s clients[CLIENT_CACHE_SLOTS]; 53short int scanning = 0; 54volatile short int quitting = 0; 55volatile __u32 updateID = 0; 56