diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-08 09:26:13 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-08 09:26:13 +0100 |
| commit | 491f19514fe986954e702e14023a2d9b1b54e066 (patch) | |
| tree | c2ec83abb512f3e0d7d8dcb172bb37db5e72d15d /dev/Kernel/KernelKit | |
| parent | d302a6f4761ef2eee60416736ffb24144cbe6cc9 (diff) | |
ADD: Format user name according to type of user in k*User macros.
ADD: Refactor Power mgmt API in SCI.
ADD: Rework documentation of AHCI.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit')
| -rw-r--r-- | dev/Kernel/KernelKit/User.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/dev/Kernel/KernelKit/User.h b/dev/Kernel/KernelKit/User.h index 4e5167d4..c0d095d1 100644 --- a/dev/Kernel/KernelKit/User.h +++ b/dev/Kernel/KernelKit/User.h @@ -12,9 +12,10 @@ #include <NewKit/KString.h> #include <NewKit/Defines.h> -///! We got the Super and guest user, both used to make authorization operations on the OS. -#define kSuperUser "OS AUTHORITY/SUPER" -#define kGuestUser "OS AUTHORITY/GUEST" +///! We got the Super, standard user (%s format) and guest user, all are used to make authorization operations on the OS. +#define kSuperUser "OS AUTHORITY/SUPER/%s" +#define kGuestUser "OS AUTHORITY/GUEST/%s" +#define kFmtUser "OS AUTHORITY/STD/%s" #define kUsersDir "/Users/" @@ -36,18 +37,19 @@ namespace Kernel typedef Char* usr_public_key_kind; + /// @brief User class. class User final { public: explicit User() = delete; - User(const Int32& sel, const Char* userName); - User(const UserRingKind& kind, const Char* userName); + User(const Int32& sel, const Char* username); + User(const UserRingKind& kind, const Char* username); ~User(); public: - ZKA_COPY_DEFAULT(User) + ZKA_COPY_DEFAULT(User); public: bool operator==(const User& lhs); |
