dtpdmd.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */
  24. /******************************************************************************
  25. ******************************************************************************
  26. **
  27. ** File: dtpdmd.h
  28. **
  29. ** Description: Header file for the "dtpdmd/dtpdm protocol" which
  30. ** consists of a standard command line dtpdmd->dtpdm
  31. ** and starndard exit codes dtpdm->dtpdmd.
  32. **
  33. ** Other dtpdmd header stuff lives here too.
  34. **
  35. ** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved.
  36. **
  37. ******************************************************************************
  38. *****************************************************************************/
  39. /*
  40. * (c) Copyright 1996 Digital Equipment Corporation.
  41. * (c) Copyright 1996 International Business Machines Corp.
  42. * (c) Copyright 1996 Sun Microsystems, Inc.
  43. * (c) Copyright 1996 Novell, Inc.
  44. * (c) Copyright 1996 FUJITSU LIMITED.
  45. * (c) Copyright 1996 Hitachi.
  46. */
  47. /******************************************************************************
  48. *
  49. * Standard command line parameters for any PDM which
  50. * will become a child of dtpdmd via fork/exec.
  51. *
  52. * generic_pdm [dt-pdm-command options] [dtpdmd options]
  53. *
  54. * where [dt-pdm-command options] is:
  55. * - any additional options that were specified along with
  56. * the dt-pdm-command attribute from the X Print Server.
  57. *
  58. * where [dtpdmd options] is any of:
  59. * -display dpy Specified the display connection to the Video X-Server.
  60. * -window vwid Specified the window id on dpy.
  61. * -pdisplay pdpy Specified the display connection to the Print X-Server.
  62. * -pcontext pcid Specified the print context id on pdpy.
  63. */
  64. /******************************************************************************
  65. *
  66. * Standard exit() codes for any PDM which is a child of dtpdmd.
  67. */
  68. #define PDM_EXIT_NONE None
  69. #define PDM_EXIT_OK 191 /* "OK" */
  70. #define PDM_EXIT_CANCEL 192 /* "CANCEL" */
  71. #define PDM_EXIT_VXAUTH 193 /* no print display authorization */
  72. #define PDM_EXIT_PXAUTH 194 /* no video display authorization */
  73. #define PDM_EXIT_ERROR 195 /* all other error reasons */
  74. /*
  75. * Misc information.
  76. */
  77. #define DEFAULT_PDM_EXECUTABLE "dtpdm"