summaryrefslogtreecommitdiffhomepage
path: root/public/frameworks/LaunchHelpers.fwrk/headers
diff options
context:
space:
mode:
Diffstat (limited to 'public/frameworks/LaunchHelpers.fwrk/headers')
-rw-r--r--public/frameworks/LaunchHelpers.fwrk/headers/.keep0
-rw-r--r--public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h29
2 files changed, 29 insertions, 0 deletions
diff --git a/public/frameworks/LaunchHelpers.fwrk/headers/.keep b/public/frameworks/LaunchHelpers.fwrk/headers/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/public/frameworks/LaunchHelpers.fwrk/headers/.keep
+++ /dev/null
diff --git a/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
new file mode 100644
index 00000000..45d53b53
--- /dev/null
+++ b/public/frameworks/LaunchHelpers.fwrk/headers/Foundation.h
@@ -0,0 +1,29 @@
+/* -------------------------------------------
+
+ Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <CoreFoundation.fwrk/headers/Foundation.h>
+#include <CoreFoundation.fwrk/headers/String.h>
+
+namespace LaunchHelpers {
+struct LHLaunchInfo;
+
+/// @brief Launch information structure.
+/// @note This structure is read-only. Modyfing its members wo't have any effect.
+struct LHLaunchInfo final {
+ CF::CFString fExecutablePath;
+ CF::CFString fWorkingDirectory;
+ CF::CFString fArguments;
+ CF::CFString fEnvironment;
+ CF::CFInteger64 fUID{0};
+ CF::CFInteger64 fGID{0};
+};
+
+/// @brief Get launch information.
+/// @return the launch information structure.
+LHLaunchInfo* LHGetLaunchInfo(Void) noexcept;
+} // namespace LaunchHelpers \ No newline at end of file