vdr  2.4.1
Enumerations | Functions | Variables
svdrp.h File Reference
#include "thread.h"
#include "tools.h"

Go to the source code of this file.

Enumerations

enum  eSvdrpPeerModes { spmOff = 0, spmAny = 1, spmOnly = 2 }
 

Functions

void SetSVDRPPorts (int TcpPort, int UdpPort)
 
void SetSVDRPGrabImageDir (const char *GrabImageDir)
 
void StartSVDRPHandler (void)
 
void StopSVDRPHandler (void)
 
bool GetSVDRPServerNames (cStringList *ServerNames)
 
bool ExecSVDRPCommand (const char *ServerName, const char *Command, cStringList *Response=NULL)
 
void BroadcastSVDRPCommand (const char *Command)
 

Variables

cStateKey StateKeySVDRPRemoteTimersPoll
 

Enumeration Type Documentation

◆ eSvdrpPeerModes

Enumerator
spmOff 
spmAny 
spmOnly 

Definition at line 16 of file svdrp.h.

Function Documentation

◆ BroadcastSVDRPCommand()

void BroadcastSVDRPCommand ( const char *  Command)

◆ ExecSVDRPCommand()

bool ExecSVDRPCommand ( const char *  ServerName,
const char *  Command,
cStringList Response = NULL 
)

Sends the given SVDRP Command string to the remote VDR identified by ServerName and collects all of the response strings in Response.

If no Response parameter is given, the response from command execution is ignored. Returns true if the data exchange was successful. Whether or not the actual SVDRP command was successful depends on the resulting strings from the remote VDR, which can be accessed through Response. If Response is given, it will be cleared before the command is actually executed.

Definition at line 2850 of file svdrp.c.

References cSVDRPClientHandler::Execute(), cSVDRPClientHandler::Lock(), SVDRPClientHandler, SVDRPHandlerMutex, and cSVDRPClientHandler::Unlock().

Referenced by BroadcastSVDRPCommand(), HandleRemoteTimerModifications(), and cMenuTimers::OnOff().

◆ GetSVDRPServerNames()

bool GetSVDRPServerNames ( cStringList ServerNames)

Gets a list of all available VDRs this VDR is connected to via SVDRP, and stores it in the given ServerNames list.

The list is cleared before getting the server names. Returns true if the resulting list is not empty.

Definition at line 2838 of file svdrp.c.

References cSVDRPClientHandler::GetServerNames(), cSVDRPClientHandler::Lock(), SVDRPClientHandler, SVDRPHandlerMutex, and cSVDRPClientHandler::Unlock().

Referenced by cMenuEditTimer::cMenuEditTimer(), and cMenuSetupMisc::Set().

◆ SetSVDRPGrabImageDir()

void SetSVDRPGrabImageDir ( const char *  GrabImageDir)

Definition at line 2731 of file svdrp.c.

References grabImageDir.

Referenced by main().

◆ SetSVDRPPorts()

void SetSVDRPPorts ( int  TcpPort,
int  UdpPort 
)

Definition at line 2725 of file svdrp.c.

References SVDRPTcpPort, and SVDRPUdpPort.

Referenced by main().

◆ StartSVDRPHandler()

void StartSVDRPHandler ( void  )

◆ StopSVDRPHandler()

void StopSVDRPHandler ( void  )

Definition at line 2829 of file svdrp.c.

References SVDRPClientHandler, SVDRPHandlerMutex, and SVDRPServerHandler.

Referenced by main(), and cMenuSetupMisc::ProcessKey().

Variable Documentation

◆ StateKeySVDRPRemoteTimersPoll

cStateKey StateKeySVDRPRemoteTimersPoll

Controls whether a change to the local list of timers needs to result in sending a POLL to the remote clients.

Referenced by cMenuTimers::Delete(), main(), cMenuTimers::OnOff(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), and TimerStillRecording().