mirror of
https://github.com/neovim/neovim.git
synced 2026-08-12 10:15:33 +00:00
25 lines
651 B
C
25 lines
651 B
C
#ifndef NVIM_OS_FS_DEFS_H
|
|
#define NVIM_OS_FS_DEFS_H
|
|
|
|
#include <uv.h>
|
|
|
|
/// Struct which encapsulates stat information.
|
|
typedef struct {
|
|
uv_stat_t stat; ///< @private
|
|
} FileInfo;
|
|
|
|
/// Struct which encapsulates inode/dev_id information.
|
|
typedef struct {
|
|
uint64_t inode; ///< @private The inode of the file
|
|
uint64_t device_id; ///< @private The id of the device containing the file
|
|
} FileID;
|
|
|
|
#define FILE_ID_EMPTY (FileID) {.inode = 0, .device_id = 0}
|
|
|
|
typedef struct {
|
|
uv_fs_t request; ///< @private The request to uv for the directory.
|
|
uv_dirent_t ent; ///< @private The entry information.
|
|
} Directory;
|
|
|
|
#endif // NVIM_OS_FS_DEFS_H
|