aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/os.h
diff options
context:
space:
mode:
authorStefan Hoffmann <stefan991@gmail.com>2014-05-10 11:49:25 +0200
committerStefan Hoffmann <stefan991@gmail.com>2014-06-27 13:59:28 +0200
commit4a22fb06b98fedd0e95d2bb4529ac1d74c418ff4 (patch)
tree3ec1ef2858dd9fb17ad7103dd0b7173a0c37b205 /src/nvim/os/os.h
parent8a85b37253ccb3aa9e127a53f5a0c0ee80cd65d7 (diff)
downloadrneovim-4a22fb06b98fedd0e95d2bb4529ac1d74c418ff4.tar.gz
rneovim-4a22fb06b98fedd0e95d2bb4529ac1d74c418ff4.tar.bz2
rneovim-4a22fb06b98fedd0e95d2bb4529ac1d74c418ff4.zip
FileID: implement `FileID` struct
`FileID` should encapsulate `st_dev` and `st_ino`. It is a new abstraction used to check if two files are the same. `FileID`s will be embeded inside other struts like `buf_t` or `ff_visited_T`, where a full `FileInfo` would be to big.
Diffstat (limited to 'src/nvim/os/os.h')
-rw-r--r--src/nvim/os/os.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h
index 5dd498e3dc..ca8f7e8546 100644
--- a/src/nvim/os/os.h
+++ b/src/nvim/os/os.h
@@ -2,14 +2,9 @@
#define NVIM_OS_OS_H
#include <uv.h>
+#include "nvim/os/fs_defs.h"
#include "nvim/vim.h"
-/// Struct which encapsulates stat information.
-typedef struct {
- // TODO(stefan991): make stat private
- uv_stat_t stat;
-} FileInfo;
-
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/fs.h.generated.h"
# include "os/mem.h.generated.h"