00001 /* 00002 ** mouse:~ppr/src/include/commentary.h 00003 ** Copyright 1995--2003, Trinity College Computing Center. 00004 ** Written by David Chappell. 00005 ** 00006 ** Redistribution and use in source and binary forms, with or without 00007 ** modification, are permitted provided that the following conditions are met: 00008 ** 00009 ** * Redistributions of source code must retain the above copyright notice, 00010 ** this list of conditions and the following disclaimer. 00011 ** 00012 ** * Redistributions in binary form must reproduce the above copyright 00013 ** notice, this list of conditions and the following disclaimer in the 00014 ** documentation and/or other materials provided with the distribution. 00015 ** 00016 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00017 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00018 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00019 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 00020 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00021 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00022 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00023 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00024 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00025 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00026 ** POSSIBILITY OF SUCH DAMAGE. 00027 ** 00028 ** Last modified 12 March 2003. 00029 */ 00030 00031 /* 00032 ** The values for the "flags" argument to pprdrv's commentary() 00033 ** function. These are used to indicate into which 00034 ** catagory the message falls so that commentary() can decide 00035 ** which of the commentators to pass the information to. 00036 ** 00037 ** Every commentary message will be in one and only one of these 00038 ** four categories. 00039 */ 00040 #define COM_PRINTER_ERROR 1 /* printer errors ( %%[ PrinterError: xxxxxx ]%% ) */ 00041 #define COM_PRINTER_STATUS 2 /* printer status messages ( %%[ status: xxxxxx ]%% ) */ 00042 #define COM_STALL 4 /* "printing bogged down" */ 00043 #define COM_EXIT 8 /* Why did it exit? */ 00044 00045 /* end of file */