make vdev file flags and priv consistent with nuttx

This commit is contained in:
Daniel Agar
2018-08-20 20:20:14 -04:00
committed by Beat Küng
parent f9a3235709
commit f1bf7172e7
3 changed files with 17 additions and 25 deletions
+5 -5
View File
@@ -17,12 +17,12 @@ using px4_file_operations_t = struct file_operations;
using mode_t = uint32_t;
struct file_t {
int flags;
void *priv;
void *vdev;
int f_oflags{0};
void *f_priv{nullptr};
void *vdev{nullptr};
file_t() : flags(0), priv(nullptr), vdev(nullptr) {}
file_t(int f, void *c) : flags(f), priv(nullptr), vdev(c) {}
file_t() = default;
file_t(int f, void *c) : f_oflags(f), vdev(c) {}
};
} // namespace cdev