📄 sysconf.h
字号:
#ifndef _SYSCONF_H
#define _SYSCONF_H
#define CGI_DEBUG
#ifdef CGI_DEBUG
#define ASSERT(exp) do{if ((exp)==0) {printf ("ASSERT (%s) : LINE(%d),FILE(%s)\n", #exp, __LINE__,__FILE__);fflush (0);}}while(0);
#define DEBUGMSG(cond,printf_exp) do{if (cond) {printf ("%s:", __FILE__);printf printf_exp; fflush (0);}}while(0)
#else
#define ASSERT(exp)
#define DEBUGMSG(cond,printf_exp)
#endif
void trace(char *exp);
void trace1(int exp);
void tracePostVars(char**vars);
typedef struct sys_conf
{
///////////////////////////////////
// MAC address:
///////////////////////////////////
unsigned char mac1[12];
unsigned char mac2[12];
///////////////////////////////////
// hasPasswd
// 0: disable
// 1: enable
///////////////////////////////////
unsigned char hasPasswd;
///////////////////////////////////
// Admin account:
///////////////////////////////////
unsigned char User[20];
///////////////////////////////////
// Admin password:
///////////////////////////////////
unsigned char Passwd[20];
///////////////////////////////////
// Camera Name:
///////////////////////////////////
unsigned char CamName[20];
///////////////////////////////////
// Camera Location:
///////////////////////////////////
unsigned char CamLocation[20];
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}sys_conf;
typedef struct network_conf
{
///////////////////////////////////
// IP address for wireless:
///////////////////////////////////
unsigned long WIPADDR;
///////////////////////////////////
// Sub netmask for wireless:
///////////////////////////////////
unsigned long WNetMask;
///////////////////////////////////
// Gateway for wireless:
///////////////////////////////////
unsigned long WGateWay;
///////////////////////////////////
// IP address for ethernet:
///////////////////////////////////
unsigned long EIPADDR;
///////////////////////////////////
// Sub netmask for ethernet:
///////////////////////////////////
unsigned long ENetMask;
///////////////////////////////////
// Gateway for ethernet:
///////////////////////////////////
unsigned long EGateWay;
///////////////////////////////////
// DNS Server1:
///////////////////////////////////
unsigned long DNS1;
///////////////////////////////////
// DNS Server2:
///////////////////////////////////
unsigned long DNS2;
///////////////////////////////////
// Account1:
///////////////////////////////////
unsigned char Account1[20];
///////////////////////////////////
// Passwd1:
///////////////////////////////////
unsigned char Passwd1[20];
///////////////////////////////////
// PPPoE for Ethernet
// 0: disable
// 1: enable
///////////////////////////////////
unsigned char EPPPoE;
///////////////////////////////////
// Passwd1:
///////////////////////////////////
unsigned char IPName[20];
///////////////////////////////////
// DHCP for Wireless
// 0: disable
// 1: enable
///////////////////////////////////
unsigned char WDHCP;
///////////////////////////////////
// DHCP for Ethernet
// 0: disable
// 1: enable
///////////////////////////////////
unsigned char EDHCP;
///////////////////////////////////
// UPnP
// 0: disable
// 1: enable
///////////////////////////////////
unsigned char UPnP;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}network_conf;
typedef struct wlan_conf
{
///////////////////////////////////
// Mode:
// 1: Managed
// 2: Ad-hoc
//////////////////////////////////
unsigned char Mode;
///////////////////////////////////
// OpMode:
// 1: Auto
// 2: G
// 3: B
///////////////////////////////////
unsigned char OpMode;
///////////////////////////////////
// SSID:
///////////////////////////////////
unsigned char SSID[20];
///////////////////////////////////
// Channel:
// 1~13: channel 1~13
///////////////////////////////////
unsigned char Channel;
///////////////////////////////////
// TXRate:
// 1~54
///////////////////////////////////
unsigned char TxRate;
///////////////////////////////////
// RTS threshold:
///////////////////////////////////
unsigned short RTS;
///////////////////////////////////
// Fragmentation threshold:
///////////////////////////////////
unsigned short Fragmentation;
///////////////////////////////////
// Preamble:
// 1: long
// 2: short
///////////////////////////////////
unsigned char Preamble;
///////////////////////////////////
// Authendication:
// 1 : Open system
// 2 : Shared key
// 3 : WPA-PSK
///////////////////////////////////
unsigned char Authen;
///////////////////////////////////
// WPA Encryption:
// 1 : TKIP
// 2 : AES
///////////////////////////////////
unsigned char WPAEnc;
///////////////////////////////////
// Encryption:
// 0 : Off
// 1 : WEP 64
// 2 : WEP 128
///////////////////////////////////
unsigned char Encryption;
///////////////////////////////////
// WEP key:
///////////////////////////////////
unsigned char WEPKeyChoose;
///////////////////////////////////
// WPA Pre-shared Key:
///////////////////////////////////
unsigned char WPAPSK[20];
///////////////////////////////////
// 64bits WEP Key:
///////////////////////////////////
unsigned char WEPKey641[10];
unsigned char WEPKey642[10];
unsigned char WEPKey643[10];
unsigned char WEPKey644[10];
///////////////////////////////////
// 128bits WEP Key:
///////////////////////////////////
unsigned char WEPKey1281[26];
unsigned char WEPKey1282[26];
unsigned char WEPKey1283[26];
unsigned char WEPKey1284[26];
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
}wlan_conf;
typedef struct video_conf
{
///////////////////////////////////
// FF Server Port:
///////////////////////////////////
unsigned short ServerPort;
///////////////////////////////////
// Quality method:
// 1: Fixed Bitrate
// 2: Fixed Quality
///////////////////////////////////
unsigned char QualityMethod;
///////////////////////////////////
// Resolution:
// 1: QCIF
// 2: CIF
// 3: D1
///////////////////////////////////
unsigned char Resolution;
///////////////////////////////////
// BitRate:
// 1: 64k bit
// 2: 128k
// 3: 256k
// 4: 512k
// 5: 768k
// 6: 1M
// 7: 1.2M
// 8: 1.5M
// 9: 2M
///////////////////////////////////
unsigned char BitRate;
///////////////////////////////////
// FrameRate;:
// 1: 5fps
// 2: 10fps
// 3: 15fps
// 4: 20fps
// 5: 25fps
// 6: 30fps
///////////////////////////////////
unsigned char FrameRate;
///////////////////////////////////
// Quality:
// 1: Medium
// 2: Standard
// 3: Good
// 4: Detailed
// 5: Excellent
///////////////////////////////////
unsigned char Quality;
///////////////////////////////////
// HorizontalReversal:
// 0: Disable
// 1: Enable
///////////////////////////////////
unsigned char HorizontalReversal;
///////////////////////////////////
// VerticalReversal:
// 0: Disable
// 1: Enable
///////////////////////////////////
unsigned char VerticalReversal;
///////////////////////////////////
// Brightness:
// 0~255
///////////////////////////////////
unsigned char Brightness;
///////////////////////////////////
// Saturation:
// 0~255
///////////////////////////////////
unsigned char Saturation;
///////////////////////////////////
// Contrast:
// 0~255
///////////////////////////////////
unsigned char Contrast;
///////////////////////////////////
// Hue:
// 0~255
///////////////////////////////////
unsigned char Hue;
///////////////////////////////////
// Reserve for new parameter:
///////////////////////////////////
unsigned char Reserve[256];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -