📄 upnp_z256_device.h.back
字号:
/////////////////////////////////////////////////////////////////////////////// Copyright (c) 2004 RPA Networks// All rights reserved.///////////////////////////////////////////////////////////////////////////////// $Revision: 1.0.0.0 $// $Date: 2004/02/23 $//#ifndef UPNP_Z256_DEVICE_H#define UPNP_Z256_DEVICE_H#include <stdio.h>#include <signal.h>#include <pthread.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include "upnp.h"#include "sample_util.h"#define Z256_SERVICE_SERVCOUNT 2#define Z256_SERVICE_CONTROL 0#define Z256_SERVICE_PICTURE 1#define Z256_CONTROL_VARCOUNT 3#define Z256_CONTROL_POWER 0#define Z256_CONTROL_CHANNEL 1#define Z256_CONTROL_VOLUME 2#define Z256_PICTURE_VARCOUNT 4#define Z256_PICTURE_COLOR 0#define Z256_PICTURE_TINT 1#define Z256_PICTURE_CONTRAST 2#define Z256_PICTURE_BRIGHTNESS 3#define Z256_MAX_VAL_LEN 5/* This should be the maximum VARCOUNT from above */#define Z256_MAXVARS Z256_PICTURE_VARCOUNTextern char Z256DeviceType[];extern char *Z256ServiceType[];/* Structure for storing Z256 Service identifiers and state table */struct Z256Service { char UDN[NAME_SIZE]; /* Universally Unique Device Name */ char ServiceId[NAME_SIZE]; char ServiceType[NAME_SIZE]; char *VariableName[Z256_MAXVARS]; char *VariableStrVal[Z256_MAXVARS]; int VariableCount;};extern struct Z256Service z256_service_table[];extern UpnpDevice_Handle device_handle;/* Mutex for protecting the global state table data in a multi-threaded, asynchronous environment. All functions should lock this mutex before reading or writing the state table data. */extern pthread_mutex_t Z256DevMutex;void Z256DeviceShutdownHdlr(int);int Z256DeviceStateTableInit(char*);int Z256DeviceHandleSubscriptionRequest(struct Upnp_Subscription_Request *);int Z256DeviceHandleGetVarRequest(struct Upnp_State_Var_Request *);int Z256DeviceHandleActionRequest(struct Upnp_Action_Request *);int Z256DeviceCallbackEventHandler(Upnp_EventType, void*, void*);int Z256DeviceSetServiceTableVar(unsigned int, unsigned int, char*);int Z256DeviceSetPower(int);int Z256DevicePowerOn();int Z256DevicePowerOff();int Z256DeviceSetChannel(int);int Z256DeviceIncrChannel(int);int Z256DeviceSetVolume(int);int Z256DeviceIncrVolume(int);int Z256DeviceSetColor(int);int Z256DeviceIncrColor(int);int Z256DeviceSetTint(int);int Z256DeviceIncrTint(int);int Z256DeviceSetContrast(int);int Z256DeviceIncrContrast(int);int Z256DeviceSetBrightness(int);int Z256DeviceIncrBrightness(int);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -