Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "AirPlayServer.h"
#include "FileItem.h"
#include "FileItemList.h"
#include "ServiceBroker.h"
#include "URL.h"
#include "application/ApplicationComponents.h"
#include "application/ApplicationPlayer.h"
#include "application/ApplicationVolumeHandling.h"
#include "filesystem/Directory.h"
#include "filesystem/File.h"
#include "input/actions/Action.h"
#include "input/actions/ActionIDs.h"
#include "interfaces/AnnouncementManager.h"
#include "messaging/ApplicationMessenger.h"
#include "network/Network.h"
#include "playlists/PlayListTypes.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "utils/Digest.h"
#include "utils/StringUtils.h"
#include "utils/Variant.h"
#include "utils/log.h"
#include <mutex>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <inttypes.h>
#include <plist/plist.h>
Macros | |
#define | RECEIVEBUFFER 1024 |
#define | AIRPLAY_STATUS_OK 200 |
#define | AIRPLAY_STATUS_SWITCHING_PROTOCOLS 101 |
#define | AIRPLAY_STATUS_NEED_AUTH 401 |
#define | AIRPLAY_STATUS_NOT_FOUND 404 |
#define | AIRPLAY_STATUS_METHOD_NOT_ALLOWED 405 |
#define | AIRPLAY_STATUS_PRECONDITION_FAILED 412 |
#define | AIRPLAY_STATUS_NOT_IMPLEMENTED 501 |
#define | AIRPLAY_STATUS_NO_RESPONSE_NEEDED 1000 |
#define | EVENT_NONE -1 |
#define | EVENT_PLAYING 0 |
#define | EVENT_PAUSED 1 |
#define | EVENT_LOADING 2 |
#define | EVENT_STOPPED 3 |
#define | PLAYBACK_INFO |
#define | PLAYBACK_INFO_NOT_READY |
#define | SERVER_INFO |
#define | EVENT_INFO |
#define | AUTH_REALM "AirPlay" |
#define | AUTH_REQUIRED "WWW-Authenticate: Digest realm=\"" AUTH_REALM "\", nonce=\"{:s}\"\r\n" |
Functions | |
void | ClearPhotoAssetCache () |
void | handleZeroconfAnnouncement () |
std::string | calcResponse (const std::string &username, const std::string &password, const std::string &realm, const std::string &method, const std::string &digestUri, const std::string &nonce) |
std::string | getFieldFromString (const std::string &str, const char *field) |
std::string | getStringFromPlist (plist_t node) |
Variables | |
const char * | eventStrings [] = {"playing", "paused", "loading", "stopped"} |
#define AIRPLAY_STATUS_METHOD_NOT_ALLOWED 405 |
#define AIRPLAY_STATUS_NEED_AUTH 401 |
#define AIRPLAY_STATUS_NO_RESPONSE_NEEDED 1000 |
#define AIRPLAY_STATUS_NOT_FOUND 404 |
#define AIRPLAY_STATUS_NOT_IMPLEMENTED 501 |
#define AIRPLAY_STATUS_OK 200 |
#define AIRPLAY_STATUS_PRECONDITION_FAILED 412 |
#define AIRPLAY_STATUS_SWITCHING_PROTOCOLS 101 |
#define AUTH_REALM "AirPlay" |
#define AUTH_REQUIRED "WWW-Authenticate: Digest realm=\"" AUTH_REALM "\", nonce=\"{:s}\"\r\n" |
#define EVENT_INFO |
#define EVENT_LOADING 2 |
#define EVENT_NONE -1 |
#define EVENT_PAUSED 1 |
#define EVENT_PLAYING 0 |
#define EVENT_STOPPED 3 |
#define PLAYBACK_INFO |
#define PLAYBACK_INFO_NOT_READY |
#define RECEIVEBUFFER 1024 |
#define SERVER_INFO |
std::string calcResponse | ( | const std::string & | username, |
const std::string & | password, | ||
const std::string & | realm, | ||
const std::string & | method, | ||
const std::string & | digestUri, | ||
const std::string & | nonce ) |
void ClearPhotoAssetCache | ( | ) |
std::string getFieldFromString | ( | const std::string & | str, |
const char * | field ) |
std::string getStringFromPlist | ( | plist_t | node | ) |
void handleZeroconfAnnouncement | ( | ) |
const char* eventStrings[] = {"playing", "paused", "loading", "stopped"} |