📄 main.h
字号:
/*** main Header File (Public or Private)*//************************************************************************* Standard header preamble. Ensure singular inclusion, setup for** function prototypes and c++ inclusion*/#ifndef MAIN_MAIN_H#define MAIN_MAIN_H 1#if defined(__STDC__) || defined(__cplusplus)# define __ANSI_PROTO(x) x#else# define __ANSI_PROTO(x) ()#endif#ifdef __cplusplusextern "C" {#endif/************************************************************************* Macro Definitions*//************************************************************************* Type Definitions*/typedef struct { int unixSock, ipSock; char *unixPort; cinfo_t conArray[256]; fd_set clientFDs; mConfig_t config; FILE *logFP, *updateFP;} msqld;/************************************************************************* Function Prototypes*/void freeClientConnection __ANSI_PROTO((msqld*,int));void logQuery __ANSI_PROTO((FILE *, cinfo_t*, char*));void childStartup __ANSI_PROTO(());RETSIGTYPE puntServer __ANSI_PROTO((int));RETSIGTYPE puntClient __ANSI_PROTO((int));/************************************************************************* Standard header file footer. */#ifdef __cplusplus }#endif /* __cplusplus */#endif /* file inclusion */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -