New command -launch_frontend
This commit is contained in:
@ -74,6 +74,28 @@ int Xorriso_option_joliet(struct XorrisO *xorriso, char *mode, int flag)
|
||||
}
|
||||
|
||||
|
||||
/* Command -launch_frontend */
|
||||
int Xorriso_option_launch_frontend(struct XorrisO *xorriso, char *cmd,
|
||||
char *cmd_pipe_adr, char *reply_pipe_adr, int flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
xorriso->dialog= 2;
|
||||
|
||||
if(xorriso->launch_frontend_banned) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-launch_frontend was already executed in this xorriso run");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(0);
|
||||
}
|
||||
xorriso->launch_frontend_banned= 1;
|
||||
if(cmd[0] == 0 && (cmd_pipe_adr[0] == 0 || reply_pipe_adr[0] == 0))
|
||||
return(1);
|
||||
ret= Xorriso_launch_frontend(xorriso, cmd, cmd_pipe_adr, reply_pipe_adr, 0);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
/* Option -list_arg_sorting */
|
||||
int Xorriso_option_list_arg_sorting(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
|
Reference in New Issue
Block a user