diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 23:53:20 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-04 23:53:56 +0200 |
| commit | 175296c1e85d2747fb4b1063199e933978320231 (patch) | |
| tree | 161659f9af65a0c37802630209ec2654cfec1659 /Comm | |
| parent | 16c2e132b39836a3e312f3bda7ee0e6de60d6dd9 (diff) | |
MHR-36: Running run_format.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Comm')
| -rw-r--r-- | Comm/herror.hxx | 6 | ||||
| -rw-r--r-- | Comm/newstd.hxx | 17 |
2 files changed, 11 insertions, 12 deletions
diff --git a/Comm/herror.hxx b/Comm/herror.hxx index 1115e357..725a710c 100644 --- a/Comm/herror.hxx +++ b/Comm/herror.hxx @@ -12,9 +12,9 @@ #error !!! including header in kernel mode !!! #endif // __KERNEL__ -#define ErrLocalIsOk() (kLastError == kErrorSuccess) -#define ErrLocalFailed() (kLastError != kErrorSuccess) -#define ErrLocal() (kLastError) +#define ErrLocalIsOk() (kLastError == kErrorSuccess) +#define ErrLocalFailed() (kLastError != kErrorSuccess) +#define ErrLocal() (kLastError) typedef SInt32 HError; diff --git a/Comm/newstd.hxx b/Comm/newstd.hxx index 0eaa2c50..2ec50df6 100644 --- a/Comm/newstd.hxx +++ b/Comm/newstd.hxx @@ -22,7 +22,7 @@ Purpose: System Call Interface. #define cRestrictW "w"
#define cRestrictRW "rw"
-class NSyscall; /// @brief System call class.
+class NSyscall; /// @brief System call class.
typedef int OSType;
typedef bool Bool;
@@ -54,23 +54,23 @@ public: virtual ~NSyscall() = default;
NSyscall& operator=(const NSyscall&) = default;
- NSyscall(const NSyscall&) = default;
+ NSyscall(const NSyscall&) = default;
public:
/// @brief disable device.
- virtual UInt0 PowerOff(MBCIType) = 0;
+ virtual UInt0 PowerOff(MBCIType) = 0;
/// @brief enable device.
- virtual UInt0 PowerOn(MBCIType) = 0;
+ virtual UInt0 PowerOn(MBCIType) = 0;
/// @brief reboot device.
- virtual UInt0 PowerReboot(MBCIType) = 0;
+ virtual UInt0 PowerReboot(MBCIType) = 0;
/// @brief check if MBCI device is wokeup.
- virtual Bool PowerIsWokeup(MBCIType) = 0;
+ virtual Bool PowerIsWokeup(MBCIType) = 0;
/// @brief probe MBCI device from phone.
- virtual MBCIType PowerProbeDevice(const char* namepace, const int index) = 0;
+ virtual MBCIType PowerProbeDevice(const char* namepace, const int index) = 0;
// THOSE DOESNT REQUIRE PERMISSIONS FROM THE USER. //
@@ -114,7 +114,6 @@ public: /// @brief Write descriptor.
virtual UInt0* WriteStorage(const UTFChar* cmdNameOrData, SizeT cmdSize, OSType descriptorType) = 0;
-
};
/// @brief Request syscall object.
@@ -123,6 +122,6 @@ ML_IMPORT_C NSyscall* NRequestSyscall(UInt0); /// @brief Release syscall object.
/// @param syscall System call object.
-ML_IMPORT_C UInt0 NReleaseSyscall(NSyscall* syscall);
+ML_IMPORT_C UInt0 NReleaseSyscall(NSyscall* syscall);
#endif // ifndef _INC_COMM_NEWSTD_HXX_
|
