mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 12:27:35 +00:00
Kernel: Make major and minor numbers to be DistinctNumerics
This helps avoid confusion in general, and make constructors, methods and code patterns much more clean and understandable.
This commit is contained in:
parent
6d14940053
commit
9eb08bdb0f
24 changed files with 70 additions and 52 deletions
16
Kernel/FileSystem/DeviceFileTypes.h
Normal file
16
Kernel/FileSystem/DeviceFileTypes.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(unsigned, MajorNumber);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(unsigned, MinorNumber);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue