mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Cover kernel file writer.
This commit is contained in:
parent
6ac5b0a006
commit
a7e0d672a7
3 changed files with 150 additions and 5 deletions
|
@ -108,5 +108,10 @@ public:
|
|||
virtual srs_error_t lseek(off_t offset, int whence, off_t* seeked);
|
||||
};
|
||||
|
||||
// For utest to mock it.
|
||||
typedef int (*_srs_open_t)(const char* path, int oflag, ...);
|
||||
typedef ssize_t (*_srs_write_t)(int fildes, const void* buf, size_t nbyte);
|
||||
typedef off_t (*_srs_lseek_t)(int fildes, off_t offset, int whence);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue