move the definition of lui_t to a private header

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: make connect() work

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
add luish, a test program for liblinuxcnc-ui

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: link in libraries we need for NML etc

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
sigh, make it all C++ so it can talk to NML

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: make connect() connect to NML!

Connects to Command, Status, and Error NML channels.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
drop the silly reconnect time

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
add debug printing of the status buffer to lui's connect()

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: add estop() and estop_reset()

And some infrastructure to send Command NML messages and wait for them
to be received by Task.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui connect: accept both EMC_STAT_TYPE and 0 from peek()

Who knows what this means

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
halui: use lui for estop

Connect to NML twice: once by hand (like before) and once via
linuxcnc-ui (lui).  Use lui for estop() and estop_reset().

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: rename estop.cc to task-state.cc for clarity

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
luish: include unistd for sleep()

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: make estop() and estop_reset() both use lui_command_nml_task_set_state()

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
lui: add machine_on() and machine_off()

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>