Proof-of-concept of a GUI frontend program. Written in Tcl/Tk.

This commit is contained in:
2012-12-27 09:53:59 +00:00
parent 5e6a20e5b0
commit 3cfa0dd380
8 changed files with 4564 additions and 3 deletions

View File

@ -142,6 +142,32 @@ closing it immediately, waiting, and only then opening it for real:
CFLAGS="$CFLAGS -DLibburn_udev_extra_open_cyclE -DLibburn_udev_wait_useC=500000"
xorriso under control of a (GUI) frontend process
The dialog mode allows frontend programs to connect via pipes to the standard
input and output of xorriso. Several commands of xorriso help with receiving
and parsing of reply messages.
As a proof of concept, there is the Tcl/Tk script xorriso-tcltk which can
be launched by this shell command in the directory where xorriso was built:
xorriso/xorriso -launch_frontend frontend/xorriso-tcltk --stdio --
resp. after installation:
xorriso -launch_frontend $(which xorriso-tcltk) --stdio --
See file frontend/README-tcltk for a description of its GUI.
See its Tcl code for getting an idea how this gets achieved.
Further there is the C program frontend/frontend_pipes_xorriso.c which
forks a xorriso process and shows the same communication gestures as
xorriso-tcltk.
In particular it connects to xorriso via two pipes, sends commands, waits
for all replies of a command, picks info out of the xorriso message sieve,
and parses reply message lines into words.
Drives and Disk File Objects
The user of libisoburn applications needs rw-permission for the CD/DVD/BD

View File

@ -231,9 +231,15 @@ copy_files doc/partition_offset.wiki \
create_dir "$lone_dir"/test
copy_files \
test/compare_file.c \
test/frontend_pipes_xorriso.c \
"$lone_dir"/test
create_dir "$lone_dir"/frontend
copy_files \
frontend/frontend_pipes_xorriso.c \
frontend/README-tcltk \
frontend/xorriso-tcltk \
"$lone_dir"/frontend
# releng

View File

@ -237,6 +237,7 @@ noinst_PROGRAMS = \
test/compare_file \
xorriso/make_xorriso_1
# A program to compare two trees of files in mounted filesystems
# To compare tree /media/dvd and /original/dir :
# find /media/dvd -exec test/compare_file '{}' /media/dvd /original/dir ';'
@ -254,6 +255,11 @@ xorriso_make_xorriso_1_LDADD =
xorriso_make_xorriso_1_SOURCES = xorriso/make_xorriso_1.c
# A Proof-of-concept for frontends
bin_SCRIPTS = \
frontend/xorriso-tcltk
# Install symbolic links to the xorriso binary
#
install-exec-hook:
@ -328,7 +334,8 @@ EXTRA_DIST = \
doc/susp_aaip_isofs_names.txt \
doc/zisofs_format.txt \
doc/startup_file.txt \
test/frontend_pipes_xorriso.c \
frontend/frontend_pipes_xorriso.c \
frontend/README-tcltk \
libisofs/aaip-os-dummy.c \
libisofs/aaip-os-linux.c \
libisofs/aaip-os-freebsd.c \