00001 /* 00002 ** mouse:~ppr/src/include/uprint_conf.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 3 August 2003. 00029 */ 00030 00031 struct PATH_SET 00032 { 00033 const char *lpr; 00034 const char *lpq; 00035 const char *lprm; 00036 const char *lpc; 00037 const char *lp; 00038 const char *lpstat; 00039 const char *cancel; 00040 }; 00041 00042 struct UPRINT_CONF 00043 { 00044 struct PATH_SET well_known; 00045 struct PATH_SET sidelined; 00046 00047 struct 00048 { 00049 gu_boolean installed; 00050 gu_boolean sidelined; 00051 const char *printers; 00052 const char *classes; 00053 const char *flavor; 00054 float flavor_version; 00055 } lp; 00056 struct 00057 { 00058 gu_boolean installed; 00059 gu_boolean sidelined; 00060 const char *flavor; 00061 float flavor_version; 00062 } lpr; 00063 00064 struct 00065 { 00066 const char *lp; 00067 const char *lpr; 00068 } default_destinations; 00069 00070 } ; 00071 00072 void uprint_read_conf(void); 00073 extern struct UPRINT_CONF conf; 00074 00075 /* end of file */ 00076