31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/* Copyright (c) Rockchip Electronics Co. Ltd. */
|
|
|
|
#ifndef __FILE_CACHE_H__
|
|
#define __FILE_CACHE_H__
|
|
|
|
#include <stdint.h>
|
|
#include "file_common.h"
|
|
|
|
int file_cache_init(FILE_CACHE_ARG *cache_arg);
|
|
int file_cache_deinit();
|
|
int64_t file_cache_lseek(int fd, int64_t offset, int whence);
|
|
ssize_t file_cache_read(int fd, void *buf, size_t count);
|
|
ssize_t file_cache_write(int fd, const void *buf, size_t count, int64_t mdat_pos);
|
|
int file_cache_open(const char *filename, int flags, ...);
|
|
int file_cache_close(int fd);
|
|
int file_cache_fstat(int fd, struct stat *filestat);
|
|
void file_cache_set_mode(FILE_WRITE_MODE write_mode);
|
|
int file_cache_process_exit(char *filename);
|
|
|
|
#if 0
|
|
FILE *file_cache_fopen(const char *file_name, const char *mode);
|
|
int file_cache_fclose(FILE *fp);
|
|
ssize_t file_cache_read(int fd, void *buf, size_t count);
|
|
int file_cache_writetrail(int fd);
|
|
int file_cache_get_tailoff(int fd);
|
|
int file_cache_blocknotify(int prev_num, int later_num, char *filename);
|
|
int file_cache_fstat(int fd, struct stat *filestat);
|
|
#endif
|
|
|
|
#endif
|