From a21d273d9b8b02f2f6e02c913b64a29d06253f85 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 12 Sep 2021 18:21:43 +0200 Subject: move `enum vs_operation` to shared/flags.h --- src/kernel/vfs/request.h | 6 +----- src/shared/flags.h | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index 8f5cf92..aabef4f 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -1,4 +1,5 @@ #pragma once +#include enum vfs_backend_type { VFS_BACK_ROOT, @@ -14,11 +15,6 @@ struct vfs_backend { struct process *queue; }; -enum vfs_operation { - VFSOP_OPEN, - VFSOP_WRITE, -}; - // describes an in-process vfs call struct vfs_request { enum vfs_operation type; diff --git a/src/shared/flags.h b/src/shared/flags.h index 9ab8d9d..3f182b9 100644 --- a/src/shared/flags.h +++ b/src/shared/flags.h @@ -1,5 +1,10 @@ #pragma once +enum vfs_operation { + VFSOP_OPEN, + VFSOP_WRITE, +}; + enum { MEMFLAG_PRESENT = 1 << 0, }; -- cgit v1.2.3