33 #ifndef UPNP_TV_DEVICE_H
34 #define UPNP_TV_DEVICE_H
46 #include "sample_util.h"
69 #define MAX_BRIGHTNESS 10
70 #define MIN_BRIGHTNESS 1
85 #define MAX_CONTRAST 10
86 #define MIN_CONTRAST 1
89 #define MAX_CHANNEL 100
93 #define TV_SERVICE_SERVCOUNT 2
96 #define TV_SERVICE_CONTROL 0
99 #define TV_SERVICE_PICTURE 1
102 #define TV_CONTROL_VARCOUNT 3
105 #define TV_CONTROL_POWER 0
108 #define TV_CONTROL_CHANNEL 1
111 #define TV_CONTROL_VOLUME 2
114 #define TV_PICTURE_VARCOUNT 4
117 #define TV_PICTURE_COLOR 0
120 #define TV_PICTURE_TINT 1
123 #define TV_PICTURE_CONTRAST 2
126 #define TV_PICTURE_BRIGHTNESS 3
129 #define TV_MAX_VAL_LEN 5
132 #define TV_MAXACTIONS 12
135 #define TV_MAXVARS TV_PICTURE_VARCOUNT
138 extern char TvDeviceType[];
140 extern char *TvServiceType[];
171 char ServiceId[NAME_SIZE];
172 char ServiceType[NAME_SIZE];
173 char *VariableName[TV_MAXVARS];
174 char *VariableStrVal[TV_MAXVARS];
175 char *ActionNames[TV_MAXACTIONS];
176 upnp_action actions[TV_MAXACTIONS];
177 unsigned int VariableCount;
181 extern struct TvService tv_service_table[];
191 extern ithread_mutex_t TVDevMutex;
208 int SetActionTable(
int serviceType,
struct TvService *out);
227 int TvDeviceStateTableInit(
char*);
291 int TvDeviceCallbackEventHandler(Upnp_EventType,
void*,
void*);
311 int TvDeviceSetServiceTableVar(
unsigned int,
unsigned int,
char*);
624 int TvDeviceStart(
char * ip_address,
unsigned short port,
char * desc_doc_name,
625 char *web_dir_path, print_string pfun);
626 int TvDeviceStop(
void);
struct s_UpnpSubscriptionRequest UpnpSubscriptionRequest
Definition: SubscriptionRequest.h:17
struct s_UpnpStateVarRequest UpnpStateVarRequest
Definition: StateVarRequest.h:18
int UpnpDevice_Handle
Returned when a device application registers with UpnpRegisterRootDevice or UpnpRegisterRootDevice2.
Definition: upnp.h:470
Definition: upnp_tv_device.h:168
Data structure representing the DOM Document.
Definition: ixml.h:183
struct s_UpnpActionRequest UpnpActionRequest
Definition: ActionRequest.h:17