aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs_defs.h
blob: e4d79aab663398b3cdccb4186565e4c1ddf7da74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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}

#endif  // NVIM_OS_FS_DEFS_H