summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2022-10-24 01:33:09 +0000
committermidipix <writeonce@midipix.org>2022-10-30 16:24:17 +0000
commitb824c9188a7636b0f8b483ac1ade79885610cca1 (patch)
tree85f91fbac5cfad0bd7b742ee8a2b727bdfe9d7ac /src/internal
parent6dc70d02aa1767532f0339e7e335d544edced1c8 (diff)
downloadntux-b824c9188a7636b0f8b483ac1ade79885610cca1.tar.bz2
ntux-b824c9188a7636b0f8b483ac1ade79885610cca1.tar.xz
ntux_cmd_bridge(): initial implementation and integration.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ntux_driver_impl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/ntux_driver_impl.h b/src/internal/ntux_driver_impl.h
index 0b8ba26..c3c109c 100644
--- a/src/internal/ntux_driver_impl.h
+++ b/src/internal/ntux_driver_impl.h
@@ -20,6 +20,14 @@ extern const struct argv_option ntux_strace_options[];
extern const struct argv_option ntux_chmod_options[];
extern const struct argv_option ntux_aceit_options[];
extern const struct argv_option ntux_fspath_options[];
+extern const struct argv_option ntux_bridge_options[];
+
+/* bridge functionality */
+#define NTUX_EXE_SUFFIX ".exe"
+#define NTUX_EXE_SUFFIX_LEN (4)
+#define NTUX_MAX_PATH_UTF8 (32768 / 2 * 3)
+#define NTUX_MAX_PATH NTUX_MAX_PATH_UTF8
+
enum app_tags {
TAG_HELP,
@@ -43,6 +51,11 @@ enum app_tags {
TAG_APATH,
TAG_NPATH,
TAG_DPATH,
+ TAG_INTERP,
+ TAG_SCRIPT,
+ TAG_OPTARG,
+ TAG_CWDPATH,
+ TAG_ABSPATH,
};
struct ntux_driver_ctx_impl {
@@ -52,6 +65,7 @@ struct ntux_driver_ctx_impl {
struct __psx_context xctx;
const struct ntux_unit_ctx *euctx;
const char * eunit;
+ char * interp;
struct ntux_error_info ** errinfp;
struct ntux_error_info ** erricap;
struct ntux_error_info * erriptr[64];