⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ntp_setup.h

📁 使用C语言的cgi程序
💻 H
字号:
#ifndef __NTP_H__
#define __NTP_H__

#define	MAX_NTP_SERVER_IP_LEN			20
#define MAX_NTP_SERVER_DOMAIN_LEN		30

typedef struct ntp_conf{
	int		ntp_enable;
	int     server_select;
	char    ntp_server_ip[MAX_NTP_SERVER_IP_LEN+1];
	char 	ntp_server_domain[MAX_NTP_SERVER_DOMAIN_LEN+1];
	int 	ntp_timezone;
}NTP_CONF;


#define	NTP_OK					0			//Succeed
#define	NTP_ReadConfErr			-1			//Fail to read NTP settings.
#define	NTP_SaveConfErr			-2			//Fail to save NTP settings.

int ReadNTPConf(NTP_CONF *conf);
int SaveNTPConf(NTP_CONF *conf);
int time_zone_adjust(void);
extern NTP_CONF ntp_conf;


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -