2
0

EnvControlP.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. /*
  24. * (c) Copyright 1993, 1994 Hewlett-Packard Company *
  25. * (c) Copyright 1993, 1994 International Business Machines Corp. *
  26. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
  27. * (c) Copyright 1993, 1994 Novell, Inc. *
  28. */
  29. /****************************<+>*************************************
  30. **
  31. ** File: EnvControlP.h
  32. **
  33. ** RCS: $TOG: EnvControlP.h /main/6 1998/07/30 12:13:45 mgreess $
  34. ** Project: DT Runtime Library
  35. **
  36. ** Description: Defines structures, and parameters used
  37. ** for communication with the environment
  38. **
  39. ** (c) Copyright 1990 by Hewlett-Packard Company
  40. **
  41. ****************************<+>*************************************/
  42. /******** Public Function Declarations ********/
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. extern int _DtEnvControl(
  47. int mode) ;
  48. extern int _DtWsmSetBackdropSearchPath(
  49. Screen *screen,
  50. char *backdropDir,
  51. Boolean useMultiColorIcons) ;
  52. /******** End Public Function Declarations ********/
  53. /**********************************************************************
  54. * Command parameters to the function, which double as result codes.
  55. * If the invocation is successful, the same is returned;
  56. * else DT_ENV_NO_OP is returned.
  57. DT_ENV_SET
  58. Sets the DT environment.
  59. DT_ENV_RESTORE_PRE_DT
  60. Restores the pre-DT application environment
  61. DT_ENV_RESTORE_POST_DT
  62. Reinstalls the DT environment after a restoring pre-DT
  63. environment
  64. DT_ENV_NO_OP
  65. Does nothing
  66. DT_ENV_SET_BIN
  67. Sets the DT environment PLUS sets the PATH= variable to
  68. where the DT files live.
  69. **********************************************************************/
  70. #define DT_ENV_SET 0
  71. #define DT_ENV_RESTORE_PRE_DT 1
  72. #define DT_ENV_RESTORE_POST_DT 2
  73. #define DT_ENV_NO_OP 3
  74. #define DT_ENV_SET_BIN 4
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. /**************************** eof **********************/