HelposI.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. /* $TOG: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: DtosI.h
  28. **
  29. ** Project: Rivers Project,
  30. **
  31. ** Description: Internal header file for our Dtos.c module
  32. ** -----------
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  35. **
  36. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  37. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  38. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  39. ** (c) Copyright 1993, 1994 Novell, Inc.
  40. **
  41. *******************************************************************
  42. *************************************<+>*************************************/
  43. #ifndef _DtosI_h
  44. #define _DtosI_h
  45. #ifndef NO_MESSAGE_CATALOG
  46. # define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s)
  47. #else
  48. # define _DTGETMESSAGE(set, n, s) s
  49. #endif
  50. /*****************************************************************************
  51. * Function: Boolean _DtHelpOSGetHomeDirName(
  52. *
  53. *
  54. * Parameters: Output string, size of output string buffer
  55. *
  56. * Return Value: String.
  57. *
  58. *
  59. * Description:
  60. *
  61. *****************************************************************************/
  62. extern void _DtHelpOSGetHomeDirName(
  63. String outptr,
  64. size_t len);
  65. /*****************************************************************************
  66. * Function: _DtHelpGetUserSearchPath(
  67. *
  68. *
  69. * Parameters:
  70. *
  71. * Return Value: String, owned by caller.
  72. *
  73. *
  74. * Description:
  75. * Gets the user search path for use
  76. * when searching for a volume.
  77. * Takes path from the environment,
  78. * or uses the default path.
  79. *
  80. *****************************************************************************/
  81. String _DtHelpGetUserSearchPath(void);
  82. /*****************************************************************************
  83. * Function: _DtHelpGetSystemSearchPath(
  84. *
  85. *
  86. * Parameters:
  87. *
  88. * Return Value: String, owned by caller.
  89. *
  90. *
  91. * Description:
  92. * Gets the system search path for use
  93. * when searching for a volume.
  94. * Takes path from the environment,
  95. * or uses the default path.
  96. *
  97. *****************************************************************************/
  98. String _DtHelpGetSystemSearchPath(void);
  99. /*****************************************************************************
  100. * Function: Boolean _DtHelpGetMessage(
  101. *
  102. *
  103. * Parameters:
  104. *
  105. * Return Value: char *
  106. *
  107. *
  108. * Description: This function will retreive the requested message from the
  109. * cache proper cache creek message catalog file.
  110. *
  111. *****************************************************************************/
  112. extern char *_DtHelpGetMessage(
  113. int set,
  114. int n,
  115. char *s);
  116. /*****************************************************************************
  117. * Function: char * _DtHelpGetLocale(
  118. *
  119. *
  120. * Parameters:
  121. *
  122. * Return Value: char *
  123. *
  124. *
  125. * Description: Returns the value of LC_MESSAGES from the environ.
  126. * If that is NULL, returns the value of LANG form the environ.
  127. * If that is NULL, returns NULL.
  128. *
  129. *****************************************************************************/
  130. extern char *_DtHelpGetLocale(void);
  131. #endif /* _DtosI_h */
  132. /* Do not add anything after this endif. */