X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdisk_writer_messages.h;h=8d0306754c73d39cdda9e747a6b144614056470c;hb=30e262f486c8390b7c9a1a797471082f90adf61b;hp=61cdbcfbddebaa3c119ebf5d092163a5b7b45334;hpb=a1f7bf2d9e5610075fbd898cdf52f4f8373741f2;p=dcpomatic.git diff --git a/src/lib/disk_writer_messages.h b/src/lib/disk_writer_messages.h index 61cdbcfbd..8d0306754 100644 --- a/src/lib/disk_writer_messages.h +++ b/src/lib/disk_writer_messages.h @@ -18,60 +18,55 @@ */ -/* dcpomatic_disk_writer receives +/* We have the front-end application dcpomatic2_disk and the back-end + * dcpomatic2_disk_writer. The communication is line-based, separated + * by \n. + */ -DCP pathname\n -Internal name of drive to write to\n +/* REQUEST TO WRITE DCP */ - Then responds with one of the following. -*/ +// Front-end sends: -/** Write finished and everything was OK, e.g. +#define DISK_WRITER_WRITE "W" +// DCP pathname +// Internal name of the drive to write to -D\n +// Back-end responds: -*/ +// everything is ok #define DISK_WRITER_OK "D" -/** There was an error. Following this will come - -error message\n -error number\n - -e.g. - -E\n -Disc full\n -42\n - -*/ +// there was an error #define DISK_WRITER_ERROR "E" +// Error message +// Error number -/** The disk writer is formatting the drive. It is not possible - * to give progress reports on this so the writer just tells us - * it's happening. This is finished when DISK_WRITER_PROGRESS - * messages start arriving - */ +// the drive is being formatted #define DISK_WRITER_FORMATTING "F" -/** Some progress has been made in the main "copy" part of the task. - * Following this will come +// data is being copied, 30% done +#define DISK_WRITER_COPY_PROGRESS "C" +// 0.3\n -progress as a float from 0 to 1\n +// data is being veriried, 60% done +#define DISK_WRITER_VERIFY_PROGRESS "V" +// 0.6\n -e.g. -P\n -0.3\n +/* REQUEST TO QUIT */ -*/ -#define DISK_WRITER_PROGRESS "P" +// Front-end sends: +#define DISK_WRITER_QUIT "Q" -/** dcpomatic_disk_writer may also receive -Q\n +/* REQUEST TO UNMOUNT A DRIVE */ -as a request to quit. -*/ -#define DISK_WRITER_QUIT "Q" +// Front-end sends: +#define DISK_WRITER_UNMOUNT "U" +// XML representation of Drive object to unmount + +// Back-end responds: +// DISK_WRITER_OK +// or +// DISK_WRITER_ERROR