storage_func.h

来自「文件系统源代码!!!!! 文件系统源代码」· C头文件 代码 · 共 51 行

H
51
字号
/*** Copyright (C) 2008 Happy Fish / YuQing** FastDFS may be copied only under the terms of the GNU General* Public License V3, which may be found in the FastDFS source kit.* Please visit the FastDFS Home Page http://www.csource.org/ for more detail.**///storage_func.h#ifndef _STORAGE_FUNC_H_#define _STORAGE_FUNC_H_#define STORAGE_DATA_DIR_FORMAT		"%02X"#define STORAGE_META_FILE_EXT		"-m"#define STORAGE_STORE_PATH_PREFIX_CHAR	'M'#ifdef __cplusplusextern "C" {#endiftypedef char * (*get_filename_func)(const void *pArg, \			char *full_filename);int storage_write_to_fd(int fd, get_filename_func filename_func, \		const void *pArg, const char *buff, const int len);int storage_func_init(const char *filename, \		char *bind_addr, const int addr_size);int storage_func_destroy();int storage_write_to_stat_file();int storage_write_to_sync_ini_file();int storage_split_filename(const char *logic_filename, \		int *filename_len, \		char *true_filename, char **ppStorePath);/*int write_serialized(int fd, const char *buff, size_t count, const bool bSync);int fsync_serialized(int fd);int recv_file_serialized(int sock, const char *filename, \		const int64_t file_bytes);*/#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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