From b824c9188a7636b0f8b483ac1ade79885610cca1 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2022 01:33:09 +0000 Subject: ntux_cmd_bridge(): initial implementation and integration. --- src/internal/ntux_driver_impl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/internal') 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]; -- cgit v1.2.3