#include <errno.h>#include "memory.h"#include "logger.h"#include "zmmf/zmmf.h"#include "exceptions.h"Go to the source code of this file.
Defines | |
| #define | CONFIG_XML_VERSION_0_11_0 1 |
| #define | CONFIG_XML_VERSION 2 |
| #define | UPNP_E_ACTION_FAILED 501 |
| UPnP specific error code. | |
| #define | UPNP_E_SUBSCRIPTION_FAILED 503 |
| #define | UPNP_E_NO_SUCH_ID 701 |
| UPnP specific error code. | |
| #define | UPNP_E_NOT_EXIST 706 |
| #define | UPNP_DEFAULT_CLASS_CONTAINER "object.container" |
| #define | UPNP_DEFAULT_CLASS_ITEM "object.item" |
| #define | UPNP_DEFAULT_CLASS_VIDEO_ITEM "object.item.videoItem" |
| #define | UPNP_DEFAULT_CLASS_IMAGE_ITEM "object.item.imageItem" |
| #define | UPNP_DEFAULT_CLASS_ACTIVE_ITEM "object.item.activeItem" |
| #define | UPNP_DEFAULT_CLASS_MUSIC_ALBUM "object.container.album.musicAlbum" |
| #define | UPNP_DEFAULT_CLASS_MUSIC_TRACK "object.item.audioItem.musicTrack" |
| #define | UPNP_DEFAULT_CLASS_MUSIC_GENRE "object.container.genre.musicGenre" |
| #define | UPNP_DEFAULT_CLASS_MUSIC_ARTIST "object.container.person.musicArtist" |
| #define | UPNP_DEFAULT_CLASS_PLAYLIST_CONTAINER "object.container.playlistContainer" |
| #define | UPNP_DEFAULT_CLASS_VIDEO_BROADCAST "object.item.videoItem.videoBroadcast" |
| #define | CDS_ID_BLACKHOLE -1 |
| #define | CDS_ID_ROOT 0 |
| #define | CDS_ID_FS_ROOT 1 |
| #define | IS_FORBIDDEN_CDS_ID(id) (id <= CDS_ID_FS_ROOT) |
| #define | SET_LAST_MODIFIED "last_modified" |
| #define | YES "yes" |
| #define | NO "no" |
| #define | TRUE "1" |
| #define | FALSE "0" |
| #define | URL_OBJECT_ID "object_id" |
| #define | URL_REQUEST_TYPE "req_type" |
| #define | URL_RESOURCE_ID "res_id" |
| #define | URL_FILE_EXTENSION "ext" |
| #define | URL_PARAM_SEPARATOR '/' |
| #define | _URL_PARAM_SEPARATOR "/" |
| #define | URL_UI_PARAM_SEPARATOR '?' |
| #define | URL_ARG_SEPARATOR '&' |
| #define | _URL_ARG_SEPARATOR "&" |
| #define | SERVER_VIRTUAL_DIR "content" |
| #define | CONTENT_MEDIA_HANDLER "media" |
| #define | CONTENT_SERVE_HANDLER "serve" |
| #define | CONTENT_ONLINE_HANDLER "online" |
| #define | CONTENT_UI_HANDLER "interface" |
| #define | CONTENT_DVD_IMAGE_HANDLER "dvd" |
| #define | REQ_TYPE_BROWSE "browse" |
| #define | REQ_TYPE_LOGIN "login" |
| #define | DIR_SEPARATOR '/' |
| #define | _DIR_SEPARATOR "/" |
| #define | VIRTUAL_CONTAINER_SEPARATOR '/' |
| #define | VIRTUAL_CONTAINER_ESCAPE '\\' |
| #define | MIMETYPE_XML "text/xml" |
| #define | MIMETYPE_HTML "text/html" |
| #define | MIMETYPE_TEXT "text/plain" |
| #define | MIMETYPE_JSON "application/json" |
| #define | MIMETYPE_DEFAULT "application/octet-stream" |
| #define | MIMETYPE_REGEXP "^([a-z0-9_-]+/[a-z0-9_-]+)" |
| #define | PROTOCOL "http-get" |
| #define | DESC_DEVICE_NAMESPACE "urn:schemas-upnp-org:device-1-0" |
| #define | DESC_DEVICE_TYPE "urn:schemas-upnp-org:device:MediaServer:1" |
| #define | DESC_SPEC_VERSION_MAJOR "1" |
| #define | DESC_SPEC_VERSION_MINOR "0" |
| #define | DESC_FRIENDLY_NAME PACKAGE_NAME |
| #define | DESC_MANUFACTURER "(c) 2005-2008 Gena Batyan <bgeradz@mediatomb.cc>, Sergey Bostandzhyan <jin@mediatomb.cc>, Leonhard Wimmer <leo@mediatomb.cc>" |
| #define | DESC_MANUFACTURER_URL "http://mediatomb.cc/" |
| #define | DESC_MODEL_DESCRIPTION "Free UPnP AV MediaServer, GNU GPL" |
| #define | DESC_MODEL_NAME PACKAGE_NAME |
| #define | DESC_MODEL_NUMBER VERSION |
| #define | DESC_SERIAL_NUMBER "1" |
| #define | DESC_CM_SERVICE_TYPE "urn:schemas-upnp-org:service:ConnectionManager:1" |
| #define | DESC_CM_SERVICE_ID "urn:upnp-org:serviceId:ConnectionManager" |
| #define | DESC_CM_SCPD_URL "cm.xml" |
| #define | DESC_CM_CONTROL_URL "/upnp/control/cm" |
| #define | DESC_CM_EVENT_URL "/upnp/event/cm" |
| #define | DESC_CDS_SERVICE_TYPE "urn:schemas-upnp-org:service:ContentDirectory:1" |
| #define | DESC_CDS_SERVICE_ID "urn:upnp-org:serviceId:ContentDirectory" |
| #define | DESC_CDS_SCPD_URL "cds.xml" |
| #define | DESC_CDS_CONTROL_URL "/upnp/control/cds" |
| #define | DESC_CDS_EVENT_URL "/upnp/event/cds" |
| #define | DESC_ICON_PNG_MIMETYPE "image/png" |
| #define | DESC_ICON_BMP_MIMETYPE "image/x-ms-bmp" |
| #define | DESC_ICON_JPG_MIMETYPE "image/jpeg" |
| #define | DESC_ICON32_PNG "/icons/mt-icon32.png" |
| #define | DESC_ICON32_BMP "/icons/mt-icon32.bmp" |
| #define | DESC_ICON32_JPG "/icons/mt-icon32.jpg" |
| #define | DESC_ICON48_PNG "/icons/mt-icon48.png" |
| #define | DESC_ICON48_BMP "/icons/mt-icon48.bmp" |
| #define | DESC_ICON48_JPG "/icons/mt-icon48.jpg" |
| #define | DESC_ICON120_JPG "/icons/mt-icon120.jpg" |
| #define | DESC_ICON120_PNG "/icons/mt-icon120.png" |
| #define | DESC_ICON120_BMP "/icons/mt-icon120.bmp" |
| #define | XML_NAMESPACE_ATTR "xmlns" |
| #define | XML_DIDL_LITE_NAMESPACE "urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" |
| #define | XML_DC_NAMESPACE_ATTR "xmlns:dc" |
| #define | XML_DC_NAMESPACE "http://purl.org/dc/elements/1.1/" |
| #define | XML_UPNP_NAMESPACE_ATTR "xmlns:upnp" |
| #define | XML_UPNP_NAMESPACE "urn:schemas-upnp-org:metadata-1-0/upnp/" |
| #define | DEFAULT_INTERNAL_CHARSET "UTF-8" |
| #define | DEFAULT_FILESYSTEM_CHARSET "ISO-8859-1" |
| #define | DEFAULT_METADATA_CHARSET "ISO-8859-1" |
| #define | DEFAULT_FALLBACK_CHARSET "US-ASCII" |
| #define | DEFAULT_JS_CHARSET "UTF-8" |
| #define | DEFAULT_CONFIG_HOME ".mediatomb" |
| #define | DEFAULT_SYSTEM_HOME "mediatomb" |
| #define | DEFAULT_ETC "etc" |
| #define | DEFAULT_TMPDIR "/tmp/" |
| #define | DEFAULT_CONFIG_NAME "config.xml" |
| #define | DEFAULT_UI_EN_VALUE YES |
| #define | DEFAULT_UI_SHOW_TOOLTIPS_VALUE YES |
| #define | DEFAULT_POLL_WHEN_IDLE_VALUE NO |
| #define | DEFAULT_POLL_INTERVAL 2 |
| #define | DEFAULT_ACCOUNTS_EN_VALUE NO |
| #define | DEFAULT_ACCOUNT_USER "mediatomb" |
| #define | DEFAULT_ACCOUNT_PASSWORD "mediatomb" |
| #define | DEFAULT_ALIVE_INTERVAL 1800 |
| #define | DEFAULT_BOOKMARK_FILE "mediatomb.html" |
| #define | DEFAULT_IGNORE_UNKNOWN_EXTENSIONS NO |
| #define | DEFAULT_CASE_SENSITIVE_EXTENSION_MAPPINGS NO |
| #define | DEFAULT_IMPORT_SCRIPT "import.js" |
| #define | DEFAULT_DVD_SCRIPT "import-dvd.js" |
| #define | DEFAULT_PLAYLISTS_SCRIPT "playlists.js" |
| #define | DEFAULT_PLAYLIST_CREATE_LINK YES |
| #define | DEFAULT_COMMON_SCRIPT "common.js" |
| #define | DEFAULT_WEB_DIR "web" |
| #define | DEFAULT_JS_DIR "js" |
| #define | DEFAULT_HIDDEN_FILES_VALUE NO |
| #define | DEFAULT_UPNP_STRING_LIMIT (-1) |
| #define | DEFAULT_SESSION_TIMEOUT 30 |
| #define | SESSION_TIMEOUT_CHECK_INTERVAL (5 * 60) |
| #define | DEFAULT_PRES_URL_APPENDTO_ATTR "none" |
| #define | DEFAULT_ITEMS_PER_PAGE_1 10 |
| #define | DEFAULT_ITEMS_PER_PAGE_2 25 |
| #define | DEFAULT_ITEMS_PER_PAGE_3 50 |
| #define | DEFAULT_ITEMS_PER_PAGE_4 100 |
| #define | DEFAULT_LAYOUT_TYPE "builtin" |
| #define | DEFAULT_EXTEND_PROTOCOLINFO NO |
| #define | DEFAULT_HIDE_PC_DIRECTORY NO |
| #define | DEFAULT_STORAGE_CACHING_ENABLED YES |
| #define | DEFAULT_STORAGE_DRIVER "mysql" |
| #define | DEFAULT_SQLITE_ENABLED NO |
| #define | DEFAULT_MYSQL_ENABLED NO |
| #define | DEFAULT_SQLITE3_DB_FILENAME "mediatomb.db" |
| #define | CONFIG_MAPPINGS_TEMPLATE "mappings.xml" |
| #define | INVALID_OBJECT_ID (-333) |
| #define | INVALID_OBJECT_ID_2 (-666) |
| #define | CHECK_SOCKET (-666) |
| #define | LOC_DIR_PREFIX 'D' |
| #define | LOC_FILE_PREFIX 'F' |
| #define | LOC_VIRT_PREFIX 'V' |
| #define | LOC_ILLEGAL_PREFIX 'X' |
| #define | DEFAULT_JS_RUNTIME_MEM (1L * 1024L * 1024L) |
| #define | XML_HEADER "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
| #define | XML_XMLNS_XSI "http://www.w3.org/2001/XMLSchema-instance" |
| #define | XML_XMLNS "http://mediatomb.cc/config/" |
| #define | DEFAULT_MARK_PLAYED_ITEMS_ENABLED NO |
| #define | DEFAULT_MARK_PLAYED_ITEMS_SUPPRESS_CDS_UPDATES YES |
| #define | DEFAULT_MARK_PLAYED_ITEMS_STRING_MODE "prepend" |
| #define | DEFAULT_MARK_PLAYED_ITEMS_STRING "* " |
| #define | DEFAULT_MARK_PLAYED_CONTENT_AUDIO "audio" |
| #define | DEFAULT_MARK_PLAYED_CONTENT_VIDEO "video" |
| #define | DEFAULT_MARK_PLAYED_CONTENT_IMAGE "image" |
| #define | LINK_FILE_REQUEST_HANDLER |
| #define | LINK_WEB_REQUEST_HANDLER |
| #define | LINK_SERVE_REQUEST_HANDLER |
| #define | LINK_URL_REQUEST_HANDLER |
| #define | LINK_DVD_REQUEST_HANDLER |
Definition in file common.h.
| #define _DIR_SEPARATOR "/" |
Definition at line 124 of file common.h.
Referenced by FallbackLayout::addImage(), FallbackLayout::addVideo(), and split_path().
| #define _URL_PARAM_SEPARATOR "/" |
Definition at line 108 of file common.h.
Referenced by CdsResourceManager::addResources(), CdsResourceManager::addResources_getUrlBase(), and CdsResourceManager::renderExtension().
| #define CDS_ID_FS_ROOT 1 |
Definition at line 90 of file common.h.
Referenced by SQLStorage::_ensurePathExistence(), ContentManager::_removeObject(), ContentManager::_rescanDirectory(), SQLStorage::addAutoscanDirectory(), SQLStorage::browse(), SQLStorage::ensurePathExistence(), SQLStorage::getChildCount(), SQLStorage::getNextID(), CdsContainer::getVirtualPath(), SQLStorage::loadLastID(), web::edit_load::process(), ContentManager::setAutoscanDirectory(), SQLStorage::setFsRootName(), and SQLStorage::updateObject().
| #define CDS_ID_ROOT 0 |
Definition at line 89 of file common.h.
Referenced by ContentManager::_removeObject(), SQLStorage::addContainerChain(), SQLStorage::browse(), SQLStorage::buildContainerPath(), SQLStorage::getChildCount(), SQLStorage::getPathIDs(), and CdsContainer::getVirtualPath().
| #define CHECK_SOCKET (-666) |
Definition at line 341 of file common.h.
Referenced by BufferedIOHandler::threadProc().
| #define CONFIG_MAPPINGS_TEMPLATE "mappings.xml" |
Definition at line 337 of file common.h.
Referenced by ConfigManager::createDefaultConfig().
| #define CONFIG_XML_VERSION 2 |
Definition at line 42 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), ConfigManager::migrate(), and ConfigManager::validate().
| #define CONFIG_XML_VERSION_0_11_0 1 |
Definition at line 41 of file common.h.
Referenced by ConfigManager::migrate().
| #define CONTENT_DVD_IMAGE_HANDLER "dvd" |
Definition at line 117 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase().
| #define CONTENT_MEDIA_HANDLER "media" |
Definition at line 113 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase(), and create_request_handler().
| #define CONTENT_ONLINE_HANDLER "online" |
Definition at line 115 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase(), and create_request_handler().
| #define CONTENT_SERVE_HANDLER "serve" |
Definition at line 114 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase(), create_request_handler(), ServeRequestHandler::get_info(), and ServeRequestHandler::open().
| #define CONTENT_UI_HANDLER "interface" |
Definition at line 116 of file common.h.
Referenced by create_request_handler().
| #define DEFAULT_ACCOUNT_PASSWORD "mediatomb" |
Definition at line 222 of file common.h.
Referenced by ConfigManager::createDefaultConfig().
| #define DEFAULT_ACCOUNT_USER "mediatomb" |
Definition at line 221 of file common.h.
Referenced by ConfigManager::createDefaultConfig().
| #define DEFAULT_ACCOUNTS_EN_VALUE NO |
Definition at line 220 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_ALIVE_INTERVAL 1800 |
Definition at line 223 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_BOOKMARK_FILE "mediatomb.html" |
Definition at line 224 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_CASE_SENSITIVE_EXTENSION_MAPPINGS NO |
Definition at line 226 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_COMMON_SCRIPT "common.js" |
Definition at line 231 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_CONFIG_HOME ".mediatomb" |
Definition at line 210 of file common.h.
Referenced by main(), and ConfigManager::~ConfigManager().
| #define DEFAULT_CONFIG_NAME "config.xml" |
Definition at line 215 of file common.h.
Referenced by ConfigManager::ConfigManager(), and ConfigManager::createDefaultConfig().
| #define DEFAULT_DVD_SCRIPT "import-dvd.js" |
Definition at line 228 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_EXTEND_PROTOCOLINFO NO |
Definition at line 244 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_FALLBACK_CHARSET "US-ASCII" |
Definition at line 204 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_FILESYSTEM_CHARSET "ISO-8859-1" |
Definition at line 202 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_HIDDEN_FILES_VALUE NO |
Definition at line 234 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_HIDE_PC_DIRECTORY NO |
Definition at line 246 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_IGNORE_UNKNOWN_EXTENSIONS NO |
Definition at line 225 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_IMPORT_SCRIPT "import.js" |
Definition at line 227 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_INTERNAL_CHARSET "UTF-8" |
Definition at line 201 of file common.h.
Referenced by StringConverter::f2i(), WebRequestHandler::get_info(), StringConverter::i2f(), StringConverter::m2i(), WebRequestHandler::renderXMLHeader(), and ConfigManager::validate().
| #define DEFAULT_ITEMS_PER_PAGE_1 10 |
Definition at line 239 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_ITEMS_PER_PAGE_2 25 |
Definition at line 240 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_ITEMS_PER_PAGE_3 50 |
Definition at line 241 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_ITEMS_PER_PAGE_4 100 |
Definition at line 242 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_JS_CHARSET "UTF-8" |
Definition at line 205 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_JS_DIR "js" |
Definition at line 233 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_LAYOUT_TYPE "builtin" |
Definition at line 243 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_CONTENT_AUDIO "audio" |
Definition at line 382 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_CONTENT_IMAGE "image" |
Definition at line 384 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_CONTENT_VIDEO "video" |
Definition at line 383 of file common.h.
Referenced by ConfigManager::renderExtendedRuntimeSection(), and ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_ITEMS_ENABLED NO |
Definition at line 378 of file common.h.
Referenced by ConfigManager::renderExtendedRuntimeSection(), and ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_ITEMS_STRING "* " |
Definition at line 381 of file common.h.
Referenced by ConfigManager::renderExtendedRuntimeSection(), and ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_ITEMS_STRING_MODE "prepend" |
Definition at line 380 of file common.h.
Referenced by ConfigManager::renderExtendedRuntimeSection(), and ConfigManager::validate().
| #define DEFAULT_MARK_PLAYED_ITEMS_SUPPRESS_CDS_UPDATES YES |
Definition at line 379 of file common.h.
Referenced by ConfigManager::renderExtendedRuntimeSection(), and ConfigManager::validate().
| #define DEFAULT_MYSQL_ENABLED NO |
Definition at line 332 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_PLAYLIST_CREATE_LINK YES |
Definition at line 230 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_PLAYLISTS_SCRIPT "playlists.js" |
Definition at line 229 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_POLL_INTERVAL 2 |
Definition at line 219 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_POLL_WHEN_IDLE_VALUE NO |
Definition at line 218 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_PRES_URL_APPENDTO_ATTR "none" |
Definition at line 238 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_SESSION_TIMEOUT 30 |
Definition at line 236 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_SQLITE3_DB_FILENAME "mediatomb.db" |
Definition at line 335 of file common.h.
Referenced by ConfigManager::createDefaultConfig().
| #define DEFAULT_SQLITE_ENABLED NO |
Definition at line 318 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_STORAGE_CACHING_ENABLED YES |
Definition at line 305 of file common.h.
Referenced by ConfigManager::migrate(), and ConfigManager::validate().
| #define DEFAULT_TMPDIR "/tmp/" |
Definition at line 214 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_UI_EN_VALUE YES |
Definition at line 216 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::validate().
| #define DEFAULT_UI_SHOW_TOOLTIPS_VALUE YES |
Definition at line 217 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), ConfigManager::migrate(), and ConfigManager::validate().
| #define DEFAULT_UPNP_STRING_LIMIT (-1) |
Definition at line 235 of file common.h.
Referenced by ConfigManager::validate().
| #define DEFAULT_WEB_DIR "web" |
Definition at line 232 of file common.h.
Referenced by ConfigManager::createDefaultConfig().
| #define DESC_CDS_CONTROL_URL "/upnp/control/cds" |
Definition at line 166 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CDS_EVENT_URL "/upnp/event/cds" |
Definition at line 167 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CDS_SCPD_URL "cds.xml" |
Definition at line 165 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CDS_SERVICE_ID "urn:upnp-org:serviceId:ContentDirectory" |
Definition at line 164 of file common.h.
Referenced by Server::init(), Server::upnp_actions(), Server::upnp_subscriptions(), and UpnpXML_RenderDeviceDescription().
| #define DESC_CDS_SERVICE_TYPE "urn:schemas-upnp-org:service:ContentDirectory:1" |
Definition at line 163 of file common.h.
Referenced by Server::init(), and UpnpXML_RenderDeviceDescription().
| #define DESC_CM_CONTROL_URL "/upnp/control/cm" |
Definition at line 159 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CM_EVENT_URL "/upnp/event/cm" |
Definition at line 160 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CM_SCPD_URL "cm.xml" |
Definition at line 158 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_CM_SERVICE_ID "urn:upnp-org:serviceId:ConnectionManager" |
Definition at line 157 of file common.h.
Referenced by Server::init(), Server::upnp_actions(), Server::upnp_subscriptions(), and UpnpXML_RenderDeviceDescription().
| #define DESC_CM_SERVICE_TYPE "urn:schemas-upnp-org:service:ConnectionManager:1" |
Definition at line 156 of file common.h.
Referenced by Server::init(), and UpnpXML_RenderDeviceDescription().
| #define DESC_DEVICE_NAMESPACE "urn:schemas-upnp-org:device-1-0" |
Definition at line 142 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_DEVICE_TYPE "urn:schemas-upnp-org:device:MediaServer:1" |
Definition at line 143 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_FRIENDLY_NAME PACKAGE_NAME |
Definition at line 146 of file common.h.
Referenced by ConfigManager::validate().
| #define DESC_ICON120_BMP "/icons/mt-icon120.bmp" |
Definition at line 180 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON120_JPG "/icons/mt-icon120.jpg" |
Definition at line 178 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON120_PNG "/icons/mt-icon120.png" |
Definition at line 179 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON32_BMP "/icons/mt-icon32.bmp" |
Definition at line 173 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON32_JPG "/icons/mt-icon32.jpg" |
Definition at line 174 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON32_PNG "/icons/mt-icon32.png" |
Definition at line 172 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON48_BMP "/icons/mt-icon48.bmp" |
Definition at line 176 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON48_JPG "/icons/mt-icon48.jpg" |
Definition at line 177 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON48_PNG "/icons/mt-icon48.png" |
Definition at line 175 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON_BMP_MIMETYPE "image/x-ms-bmp" |
Definition at line 170 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON_JPG_MIMETYPE "image/jpeg" |
Definition at line 171 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_ICON_PNG_MIMETYPE "image/png" |
Definition at line 169 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_MANUFACTURER "(c) 2005-2008 Gena Batyan <bgeradz@mediatomb.cc>, Sergey Bostandzhyan <jin@mediatomb.cc>, Leonhard Wimmer <leo@mediatomb.cc>" |
Definition at line 147 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_MANUFACTURER_URL "http://mediatomb.cc/" |
Definition at line 148 of file common.h.
Referenced by main(), print_copyright(), and ConfigManager::validate().
| #define DESC_MODEL_DESCRIPTION "Free UPnP AV MediaServer, GNU GPL" |
Definition at line 149 of file common.h.
Referenced by ConfigManager::validate().
| #define DESC_MODEL_NAME PACKAGE_NAME |
Definition at line 150 of file common.h.
Referenced by ConfigManager::validate().
| #define DESC_MODEL_NUMBER VERSION |
Definition at line 151 of file common.h.
Referenced by ConfigManager::validate().
| #define DESC_SERIAL_NUMBER "1" |
Definition at line 152 of file common.h.
Referenced by ConfigManager::validate().
| #define DESC_SPEC_VERSION_MAJOR "1" |
Definition at line 144 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DESC_SPEC_VERSION_MINOR "0" |
Definition at line 145 of file common.h.
Referenced by UpnpXML_RenderDeviceDescription().
| #define DIR_SEPARATOR '/' |
Definition at line 123 of file common.h.
Referenced by SQLStorage::_ensurePathExistence(), SQLStorage::_findObjectByPath(), ContentManager::_rescanDirectory(), SQLStorage::addAutoscanDirectory(), FallbackLayout::addImage(), ContentManager::addObject(), ContentManager::addRecursive(), FallbackLayout::addVideo(), ConfigManager::ConfigManager(), ConfigManager::construct_path(), ConfigManager::createDefaultConfig(), SQLStorage::ensurePathExistence(), get_filename(), FileRequestHandler::get_info(), get_last_path(), normalizePath(), FileRequestHandler::open(), split_path(), and ConfigManager::validate().
| #define INVALID_OBJECT_ID (-333) |
Definition at line 339 of file common.h.
Referenced by ContentManager::_addFile(), SQLStorage::_addUpdateObject(), SQLStorage::_autoscanChangePersistentFlag(), SQLStorage::_checkOverlappingAutoscans(), SQLStorage::_ensurePathExistence(), SQLStorage::_fillAutoscanDirectory(), SQLStorage::_getAutoscanDirectoryInfo(), SQLStorage::_getAutoscanObjectID(), ContentManager::_rescanDirectory(), FallbackLayout::add(), FallbackLayout::addAudio(), SQLStorage::addContainerChain(), ContentManager::addContainerChain(), ContentManager::addFileInternal(), FallbackLayout::addImage(), SQLStorage::addObject(), ContentManager::addObject(), FallbackLayout::addVideo(), AutoscanDirectory::AutoscanDirectory(), CacheObject::CacheObject(), CdsObject::CdsObject(), UpdateManager::containerChanged(), Session::containerChangedUI(), SQLStorage::ensurePathExistence(), ContentManager::ensurePathExistence(), SQLStorage::findObjectIDByPath(), SQLStorage::getObjects(), SQLStorage::getPathIDs(), ContentManager::handlePeristentAutoscanRemove(), SQLStorage::isAutoscanChild(), CacheObject::knowsParentID(), FileRequestHandler::open(), web::autoscan::process(), web::items::process(), web::containers::process(), SQLStorage::removeAutoscanDirectory(), SQLStorage::removeAutoscanDirectoryByObjectID(), Session::Session(), SQLStorage::SQLStorage(), StorageCache::StorageCache(), UpdateManager::threadProc(), SQLStorage::updateAutoscanPersistentList(), UpdateManager::UpdateManager(), and ContentManager::updateObject().
| #define INVALID_OBJECT_ID_2 (-666) |
Definition at line 340 of file common.h.
Referenced by SQLStorage::_autoscanChangePersistentFlag(), SQLStorage::getObjects(), Session::Session(), StorageCache::StorageCache(), and UpdateManager::UpdateManager().
| #define IS_FORBIDDEN_CDS_ID | ( | id | ) | (id <= CDS_ID_FS_ROOT) |
Definition at line 91 of file common.h.
Referenced by ContentManager::_removeObject(), SQLStorage::removeObject(), SQLStorage::removeObjects(), and SQLStorage::updateObject().
| #define LINK_DVD_REQUEST_HANDLER |
"/" SERVER_VIRTUAL_DIR "/" \ CONTENT_DVD_IMAGE_HANDLER "/"
| #define LINK_FILE_REQUEST_HANDLER |
"/" SERVER_VIRTUAL_DIR "/" \ CONTENT_MEDIA_HANDLER "/"
Definition at line 386 of file common.h.
Referenced by FileRequestHandler::get_info(), and FileRequestHandler::open().
| #define LINK_SERVE_REQUEST_HANDLER |
"/" SERVER_VIRTUAL_DIR "/" \ CONTENT_SERVE_HANDLER "/"
| #define LINK_URL_REQUEST_HANDLER |
"/" SERVER_VIRTUAL_DIR "/" \ CONTENT_ONLINE_HANDLER "/"
| #define LINK_WEB_REQUEST_HANDLER |
"/" SERVER_VIRTUAL_DIR "/" \ CONTENT_UI_HANDLER "/"
| #define LOC_DIR_PREFIX 'D' |
Definition at line 344 of file common.h.
Referenced by SQLStorage::_fillAutoscanDirectory(), SQLStorage::_findObjectByPath(), and SQLStorage::createContainer().
| #define LOC_FILE_PREFIX 'F' |
Definition at line 345 of file common.h.
Referenced by SQLStorage::_addUpdateObject(), SQLStorage::_findObjectByPath(), and CacheObject::setObject().
| #define LOC_ILLEGAL_PREFIX 'X' |
Definition at line 347 of file common.h.
Referenced by SQLStorage::stripLocationPrefix().
| #define LOC_VIRT_PREFIX 'V' |
Definition at line 346 of file common.h.
Referenced by SQLStorage::_addUpdateObject(), SQLStorage::addContainerChain(), SQLStorage::buildContainerPath(), SQLStorage::createContainer(), SQLStorage::createObjectFromRow(), and CacheObject::setObject().
| #define MIMETYPE_DEFAULT "application/octet-stream" |
Definition at line 133 of file common.h.
Referenced by web::addObject::addActiveItem(), web::addObject::addItem(), web::addObject::addUrl(), CdsActiveItem::CdsActiveItem(), CdsItem::CdsItem(), CdsItemExternalURL::CdsItemExternalURL(), CdsItemInternalURL::CdsItemInternalURL(), ServeRequestHandler::get_info(), MetadataHandler::getMimeType(), and ServeRequestHandler::open().
| #define MIMETYPE_JSON "application/json" |
Definition at line 131 of file common.h.
Referenced by WebRequestHandler::get_info().
| #define MIMETYPE_REGEXP "^([a-z0-9_-]+/[a-z0-9_-]+)" |
Definition at line 136 of file common.h.
Referenced by ServeRequestHandler::get_info(), ContentManager::init(), and ServeRequestHandler::open().
| #define MIMETYPE_TEXT "text/plain" |
Definition at line 130 of file common.h.
Referenced by FileRequestHandler::get_info(), and FileRequestHandler::open().
| #define MIMETYPE_XML "text/xml" |
Definition at line 128 of file common.h.
Referenced by WebRequestHandler::get_info().
| #define SERVER_VIRTUAL_DIR "content" |
Definition at line 112 of file common.h.
Referenced by create_request_handler(), ServeRequestHandler::get_info(), Server::init(), and ServeRequestHandler::open().
| #define SESSION_TIMEOUT_CHECK_INTERVAL (5 * 60) |
Definition at line 237 of file common.h.
Referenced by SessionManager::checkTimer().
| #define UPNP_DEFAULT_CLASS_ACTIVE_ITEM "object.item.activeItem" |
Definition at line 57 of file common.h.
Referenced by CdsActiveItem::CdsActiveItem().
| #define UPNP_DEFAULT_CLASS_CONTAINER "object.container" |
Definition at line 53 of file common.h.
Referenced by CdsContainer::CdsContainer(), and SQLStorage::createContainer().
| #define UPNP_DEFAULT_CLASS_IMAGE_ITEM "object.item.imageItem" |
| #define UPNP_DEFAULT_CLASS_ITEM "object.item" |
Definition at line 54 of file common.h.
Referenced by CdsItemExternalURL::CdsItemExternalURL().
| #define UPNP_DEFAULT_CLASS_MUSIC_ALBUM "object.container.album.musicAlbum" |
Definition at line 58 of file common.h.
Referenced by FallbackLayout::addAudio(), web::items::process(), and ContentDirectoryService::upnp_action_Browse().
| #define UPNP_DEFAULT_CLASS_MUSIC_ARTIST "object.container.person.musicArtist" |
| #define UPNP_DEFAULT_CLASS_MUSIC_GENRE "object.container.genre.musicGenre" |
Definition at line 60 of file common.h.
Referenced by FallbackLayout::addAudio().
| #define UPNP_DEFAULT_CLASS_MUSIC_TRACK "object.item.audioItem.musicTrack" |
Definition at line 59 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), ContentManager::createObjectFromFile(), and UpnpXML_DIDLRenderObject().
| #define UPNP_DEFAULT_CLASS_PLAYLIST_CONTAINER "object.container.playlistContainer" |
Definition at line 62 of file common.h.
Referenced by web::items::process(), and ContentDirectoryService::upnp_action_Browse().
| #define UPNP_DEFAULT_CLASS_VIDEO_BROADCAST "object.item.videoItem.videoBroadcast" |
| #define UPNP_DEFAULT_CLASS_VIDEO_ITEM "object.item.videoItem" |
Definition at line 55 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ContentManager::createObjectFromFile().
| #define UPNP_E_ACTION_FAILED 501 |
UPnP specific error code.
Definition at line 46 of file common.h.
Referenced by ActionRequest::update().
| #define UPNP_E_NO_SUCH_ID 701 |
UPnP specific error code.
Definition at line 49 of file common.h.
Referenced by ContentDirectoryService::upnp_action_Browse().
| #define UPNP_E_NOT_EXIST 706 |
Definition at line 50 of file common.h.
Referenced by ConnectionManagerService::upnp_action_GetCurrentConnectionInfo().
| #define UPNP_E_SUBSCRIPTION_FAILED 503 |
Definition at line 47 of file common.h.
Referenced by ConnectionManagerService::process_subscription_request(), ContentDirectoryService::process_subscription_request(), ConnectionManagerService::subscription_update(), and ContentDirectoryService::subscription_update().
| #define URL_FILE_EXTENSION "ext" |
Definition at line 106 of file common.h.
Referenced by CdsResourceManager::renderExtension().
| #define URL_OBJECT_ID "object_id" |
Definition at line 103 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase().
| #define URL_PARAM_SEPARATOR '/' |
Definition at line 107 of file common.h.
Referenced by ServeRequestHandler::get_info(), ServeRequestHandler::open(), and CdsResourceManager::renderExtension().
| #define URL_REQUEST_TYPE "req_type" |
Definition at line 104 of file common.h.
Referenced by create_request_handler().
| #define URL_RESOURCE_ID "res_id" |
Definition at line 105 of file common.h.
Referenced by CdsResourceManager::addResources_getUrlBase(), FileRequestHandler::get_info(), and FileRequestHandler::open().
| #define URL_UI_PARAM_SEPARATOR '?' |
Definition at line 109 of file common.h.
Referenced by create_request_handler(), and WebRequestHandler::open().
| #define VIRTUAL_CONTAINER_ESCAPE '\\' |
Definition at line 126 of file common.h.
Referenced by ContentManager::addContainer(), FallbackLayout::esc(), and Storage::stripAndUnescapeVirtualContainerFromPath().
| #define VIRTUAL_CONTAINER_SEPARATOR '/' |
Definition at line 125 of file common.h.
Referenced by ContentManager::addContainer(), SQLStorage::addContainerChain(), SQLStorage::buildContainerPath(), FallbackLayout::esc(), and Storage::stripAndUnescapeVirtualContainerFromPath().
| #define XML_DC_NAMESPACE "http://purl.org/dc/elements/1.1/" |
Definition at line 196 of file common.h.
Referenced by FileRequestHandler::open(), and ContentDirectoryService::upnp_action_Browse().
| #define XML_DC_NAMESPACE_ATTR "xmlns:dc" |
Definition at line 195 of file common.h.
Referenced by FileRequestHandler::open(), and ContentDirectoryService::upnp_action_Browse().
| #define XML_DIDL_LITE_NAMESPACE "urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" |
Definition at line 194 of file common.h.
Referenced by ContentDirectoryService::upnp_action_Browse().
| #define XML_HEADER "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
Definition at line 354 of file common.h.
Referenced by ConfigManager::save_text().
| #define XML_NAMESPACE_ATTR "xmlns" |
Definition at line 193 of file common.h.
Referenced by ContentDirectoryService::upnp_action_Browse().
| #define XML_UPNP_NAMESPACE "urn:schemas-upnp-org:metadata-1-0/upnp/" |
Definition at line 198 of file common.h.
Referenced by FileRequestHandler::open(), and ContentDirectoryService::upnp_action_Browse().
| #define XML_UPNP_NAMESPACE_ATTR "xmlns:upnp" |
Definition at line 197 of file common.h.
Referenced by FileRequestHandler::open(), and ContentDirectoryService::upnp_action_Browse().
| #define XML_XMLNS "http://mediatomb.cc/config/" |
Definition at line 356 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::migrate().
| #define XML_XMLNS_XSI "http://www.w3.org/2001/XMLSchema-instance" |
Definition at line 355 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), and ConfigManager::migrate().
| #define YES "yes" |
Definition at line 96 of file common.h.
Referenced by ConfigManager::createDefaultConfig(), ConfigManager::migrate(), and ConfigManager::validate().
1.6.1