newcall.h

来自「多媒体电话记录程序」· C头文件 代码 · 共 40 行

H
40
字号
/**********************************************************
*  Name: newcall.h
*  Copyright: wellgain
*  Author: bet
*  Date: 2003-11-1
*  Description:  the interface to the tel
**********************************************************/
#ifndef _WG_NEWCALL_H_
#define _WG_NEWCALL_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#include <time.h>

/* 电话类型:    未接		 已接		已拨	黑名单     */
enum calltype { missed = 1, received, dialed, blacklist };

/* return 1 if the tel is in the blacklist, or 0 otherwise */
int is_blackname(const char* tel);

/* save a newcall information. 
* type: calltype
* duration: 持续时间
*/
void newcall(const char* name, const char* tel, 
			 time_t time, time_t duration, int type);

void sync_data_file();


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _WG_NEWCALL_H_ */

⌨️ 快捷键说明

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