common.h File Reference

#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

Detailed Description

Definition in file common.h.


Define Documentation

#define _DIR_SEPARATOR   "/"

Definition at line 124 of file common.h.

Referenced by FallbackLayout::addImage(), FallbackLayout::addVideo(), and split_path().

#define _URL_ARG_SEPARATOR   "&"

Definition at line 111 of file common.h.

#define _URL_PARAM_SEPARATOR   "/"
#define CDS_ID_BLACKHOLE   -1

Definition at line 88 of file common.h.

#define CDS_ID_FS_ROOT   1
#define CDS_ID_ROOT   0
#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
#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"
#define CONTENT_ONLINE_HANDLER   "online"
#define CONTENT_SERVE_HANDLER   "serve"
#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_ETC   "etc"

Definition at line 213 of file common.h.

#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"
#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_JS_RUNTIME_MEM   (1L * 1024L * 1024L)

Definition at line 351 of file common.h.

#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"
#define DEFAULT_MARK_PLAYED_ITEMS_ENABLED   NO
#define DEFAULT_MARK_PLAYED_ITEMS_STRING   "* "
#define DEFAULT_MARK_PLAYED_ITEMS_STRING_MODE   "prepend"
#define DEFAULT_MARK_PLAYED_ITEMS_SUPPRESS_CDS_UPDATES   YES
#define DEFAULT_METADATA_CHARSET   "ISO-8859-1"

Definition at line 203 of file common.h.

#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_STORAGE_DRIVER   "mysql"

Definition at line 317 of file common.h.

#define DEFAULT_SYSTEM_HOME   "mediatomb"

Definition at line 212 of file common.h.

#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
#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"
#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"
#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   '/'
#define FALSE   "0"

Definition at line 100 of file common.h.

#define INVALID_OBJECT_ID   (-333)
#define INVALID_OBJECT_ID_2   (-666)
#define IS_FORBIDDEN_CDS_ID ( id   )     (id <= CDS_ID_FS_ROOT)
#define LINK_DVD_REQUEST_HANDLER
Value:

Definition at line 394 of file common.h.

#define LINK_FILE_REQUEST_HANDLER
Value:

Definition at line 386 of file common.h.

Referenced by FileRequestHandler::get_info(), and FileRequestHandler::open().

#define LINK_SERVE_REQUEST_HANDLER
Value:

Definition at line 390 of file common.h.

#define LINK_URL_REQUEST_HANDLER
Value:

Definition at line 392 of file common.h.

#define LINK_WEB_REQUEST_HANDLER
Value:

Definition at line 388 of file common.h.

#define LOC_DIR_PREFIX   'D'
#define LOC_FILE_PREFIX   'F'
#define LOC_ILLEGAL_PREFIX   'X'

Definition at line 347 of file common.h.

Referenced by SQLStorage::stripLocationPrefix().

#define LOC_VIRT_PREFIX   'V'
#define MIMETYPE_DEFAULT   "application/octet-stream"
#define MIMETYPE_HTML   "text/html"

Definition at line 129 of file common.h.

#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_-]+)"
#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 NO   "no"

Definition at line 97 of file common.h.

#define PROTOCOL   "http-get"

Definition at line 139 of file common.h.

#define REQ_TYPE_BROWSE   "browse"

Definition at line 119 of file common.h.

#define REQ_TYPE_LOGIN   "login"

Definition at line 120 of file common.h.

#define SERVER_VIRTUAL_DIR   "content"
#define SESSION_TIMEOUT_CHECK_INTERVAL   (5 * 60)

Definition at line 237 of file common.h.

Referenced by SessionManager::checkTimer().

#define SET_LAST_MODIFIED   "last_modified"

Definition at line 94 of file common.h.

#define TRUE   "1"

Definition at line 99 of file common.h.

#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"

Definition at line 56 of file common.h.

#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"
#define UPNP_DEFAULT_CLASS_MUSIC_ARTIST   "object.container.person.musicArtist"

Definition at line 61 of file common.h.

#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"
#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"

Definition at line 63 of file common.h.

#define UPNP_DEFAULT_CLASS_VIDEO_ITEM   "object.item.videoItem"
#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
#define UPNP_E_SUBSCRIPTION_FAILED   503
#define URL_ARG_SEPARATOR   '&'

Definition at line 110 of file common.h.

#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   '/'
#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"
#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   '\\'
#define VIRTUAL_CONTAINER_SEPARATOR   '/'
#define XML_DC_NAMESPACE   "http://purl.org/dc/elements/1.1/"
#define XML_DC_NAMESPACE_ATTR   "xmlns:dc"
#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/"
#define XML_UPNP_NAMESPACE_ATTR   "xmlns:upnp"
#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"

Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1