tv_ctrlpt.h File Reference
Sample Code
`#include "sample_util.h"`
`#include "upnp.h"`
`#include "UpnpString.h"`
`#include "upnptools.h"`
`#include <signal.h>`
`#include <stdarg.h>`
`#include <stdio.h>`
Include dependency graph for tv_ctrlpt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | tv_service
struct | TvDevice
struct | TvDeviceNode

## Functions

Control Point Sample Module
int | TvCtrlPointDeleteNode (struct TvDeviceNode *node)
int | TvCtrlPointRemoveDevice (const char *UDN)
int | TvCtrlPointRemoveAll (void)
int | TvCtrlPointRefresh (void)
int | TvCtrlPointSendAction (int service, int devnum, const char *actionname, const char **param_name, char **param_val, int param_count)
int | TvCtrlPointSendActionNumericArg (int devnum, int service, const char *actionName, const char *paramName, int paramValue)
int | TvCtrlPointSendPowerOn (int devnum)
int | TvCtrlPointSendPowerOff (int devnum)
int | TvCtrlPointSendSetChannel (int devnum, int channel)
int | TvCtrlPointSendSetVolume (int devnum, int volume)
int | TvCtrlPointSendSetColor (int devnum, int color)
int | TvCtrlPointSendSetTint (int devnum, int tint)
int | TvCtrlPointSendSetContrast (int devnum, int contrast)
int | TvCtrlPointSendSetBrightness (int devnum, int brightness)
int | TvCtrlPointGetVar (int service, int devnum, const char *varname)
int | TvCtrlPointGetPower (int devnum)
int | TvCtrlPointGetChannel (int devnum)
int | TvCtrlPointGetVolume (int devnum)
int | TvCtrlPointGetColor (int devnum)
int | TvCtrlPointGetTint (int devnum)
int | TvCtrlPointGetContrast (int devnum)
int | TvCtrlPointGetBrightness (int devnum)
int | TvCtrlPointGetDevice (int devnum, struct TvDeviceNode **devnode)
int | TvCtrlPointPrintList ()
int | TvCtrlPointPrintDevice (int devnum)
void | TvCtrlPointAddDevice (IXML_Document *DescDoc, const char *location, int expires)
void | TvCtrlPointHandleGetVar (const char *controlURL, const char *varName, const DOMString varValue)
void | TvStateUpdate ( char *UDN, int Service, IXML_Document *ChangedVariables, char **State)
| Update a Tv state table. Called when an event is received. More...
void | TvCtrlPointHandleEvent (const char *sid, int evntkey, IXML_Document *changes)
void | TvCtrlPointHandleSubscribeUpdate (const char *eventURL, const Upnp_SID sid, int timeout)
int | TvCtrlPointCallbackEventHandler (Upnp_EventType EventType, const void *Event, void *Cookie)
void | TvCtrlPointVerifyTimeouts ( int incr)
| Checks the advertisement each device in the global device list. More...
void | TvCtrlPointPrintCommands (void)
void * | TvCtrlPointCommandLoop (void *args)
| Function that receives commands from the user at the command prompt during the lifetime of the device, and calls the appropriate functions for those commands. More...
int | TvCtrlPointStart (print_string printFunctionPtr, state_update updateFunctionPtr, int combo)
| Call this function to initialize the UPnP library and start the TV Control Point. This function creates a timer thread and provides a callback handler to process any UPnP events that are received. More...
int | TvCtrlPointStop (void)
int | TvCtrlPointProcessCommand (char *cmdline)
void | TvCtrlPointPrintShortHelp (void)
| Print help info for this application. More...
void | TvCtrlPointPrintLongHelp (void)
| Print long help info for this application. More...

## Contro Point Sample API

#define | TV_SERVICE_SERVCOUNT 2
#define | TV_SERVICE_CONTROL 0
#define | TV_SERVICE_PICTURE 1
#define | TV_CONTROL_VARCOUNT 3
#define | TV_CONTROL_POWER 0
#define | TV_CONTROL_CHANNEL 1
#define | TV_CONTROL_VOLUME 2
#define | TV_PICTURE_VARCOUNT 4
#define | TV_PICTURE_COLOR 0
#define | TV_PICTURE_TINT 1
#define | TV_PICTURE_CONTRAST 2
#define | TV_PICTURE_BRIGHTNESS 3
#define | TV_MAX_VAL_LEN 5
#define | TV_SUCCESS 0
#define | TV_ERROR (-1)
#define | TV_WARNING 1
#define | TV_MAXVARS TV_PICTURE_VARCOUNT
const char * | TvServiceName []
const char * | TvVarName [2][4]
char | TvVarCount []
struct TvDeviceNode * | GlobalDeviceList
ithread_mutex_t | DeviceListMutex
UpnpClient_Handle | ctrlpt_handle
void | TvCtrlPointPrintHelp (void)