summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-11 08:36:40 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-11 08:36:40 +0100
commit62296fe57649a7d14e57d9db32e9f7cfd5c999d8 (patch)
tree9fcefe70d4d9943b474c702c6a224cffa6a553be
parentfe58b444de6c00089010d308a39f78890b1782b6 (diff)
chore: launch: ne_launch code improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--src/launch/LaunchKit/Foundation.h4
-rw-r--r--src/launch/src/.keep0
-rw-r--r--src/launch/src/AppMain.cc4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/launch/LaunchKit/Foundation.h b/src/launch/LaunchKit/Foundation.h
index d7eb901f..5fb8efea 100644
--- a/src/launch/LaunchKit/Foundation.h
+++ b/src/launch/LaunchKit/Foundation.h
@@ -15,7 +15,7 @@
#define NELAUNCH_INFO(MSG) PrintOut(nullptr, "INFO: [LAUNCH] %s\n", MSG)
#define NELAUNCH_WARN(MSG) PrintOut(nullptr, "WARN: [LAUNCH] %s\n", MSG)
-namespace Launch {
+namespace LaunchKit {
using AnyRef = CF::CFRef<VoidPtr>;
using StatusRef = CF::CFRef<SInt32>;
-} // namespace Launch
+} // namespace LaunchKit
diff --git a/src/launch/src/.keep b/src/launch/src/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/src/launch/src/.keep
+++ /dev/null
diff --git a/src/launch/src/AppMain.cc b/src/launch/src/AppMain.cc
index 10e9ff2b..5f2a19f9 100644
--- a/src/launch/src/AppMain.cc
+++ b/src/launch/src/AppMain.cc
@@ -9,9 +9,9 @@
#include <libSystem/SystemKit/Syscall.h>
/// @note This called by _NeMain from its own runtime.
-extern "C" SInt32 nelaunch_startup_fn(Void) {
+IMPORT_C SInt32 nelaunch_startup_fn(Void) {
/// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch)
- UInt32* ret = (UInt32*) libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service"));
+ UInt32* ret = static_cast<UInt32*>(libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service")));
if (ret) {
switch (*ret) {