18 Star 99 Fork 31

liexusong / php-beast

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
file_handler.h 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
xusong.lie 提交于 2017-03-20 12:46 . enable big file
#ifndef __FILE_HANDLER_H
#define __FILE_HANDLER_H
#include <stdio.h>
#define BEAST_FILE_HANDLER_FP 1
#define BEAST_FILE_HANDLER_FD 2
struct file_handler {
char *name;
int type;
void *ctx;
int (*check)();
int (*open)(struct file_handler *self);
int (*write)(struct file_handler *self, char *buf, int size);
int (*rewind)(struct file_handler *self);
int (*get_fd)(struct file_handler *self);
FILE *(*get_fp)(struct file_handler *self);
int (*destroy)(struct file_handler *self);
};
#endif
C
1
https://gitee.com/liexusong/php-beast.git
git@gitee.com:liexusong/php-beast.git
liexusong
php-beast
php-beast
master

搜索帮助