dlul_screen.h

来自「P2P NAP的C实现 P2P在网络应用中越来越流行」· C头文件 代码 · 共 52 行

H
52
字号
/* This file was contributed by Suzanne Skinner and is copyrighted   under the GNU General Public License. (C) 2002 Suzanne Skinner.   The code contained in this file is free software; you can   redistribute it and/or modify it under the terms of the GNU General   Public License as published by the Free Software Foundation; either   version 2, or (at your option) any later version.   This program is distributed in the hope that it will be useful, but   WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.*/#ifndef _NAP_DLUL_SCREEN_H#define _NAP_DLUL_SCREEN_H#define DLUL_REFRESH_INTERVAL 1     /* seconds */extern WINDOW *dlul_win;typedef enum dlul_field_enum {    FLD_FILENAME,    FLD_USER,    FLD_PROGRESS,    DLUL_NUM_FIELDS} dlul_field;typedef struct dlul_field_info_struct {    dlul_field  id;    int         len;} dlul_field_info_type;void  dlulscr(void);void  enddlulscr(void);void  dlul_refresh(void);void  dlul_print_download(int index, const download_t *task);void  dlul_print_upload(int index, const upload_t *task);void  dlul_print_task(int index, const char *nick, const char *fn, int state,                      size_t size, size_t bsz, size_t pos, time_t p_time);const char *dlul_get_status_desc(int status);int   dlul_input(WINDOW *win, sock_t *m);#endif

⌨️ 快捷键说明

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