Access.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 librararies 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: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: Access.h
  28. **
  29. ** Project: Run Time Project File Access
  30. **
  31. ** Description: Header file for Access.h
  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. ************************************<+>*************************************/
  44. #ifndef _DtHelpAccess_h
  45. #define _DtHelpAccess_h
  46. /****************************************************************************
  47. * Public Defines
  48. ****************************************************************************/
  49. #ifndef True
  50. #define True 1
  51. #endif
  52. #ifndef TRUE
  53. #define TRUE 1
  54. #endif
  55. #ifndef False
  56. #define False 0
  57. #endif
  58. #ifndef FALSE
  59. #define FALSE 0
  60. #endif
  61. typedef void* _DtHelpVolumeHdl;
  62. /****************************************************************************
  63. * Semi-Private Externals
  64. ****************************************************************************/
  65. extern int _DtHelpCeCompressPathname ( char *basePath );
  66. extern char *_DtHelpCeTraceFilenamePath ( char *file_path );
  67. extern char *_DtHelpCeTracePathName ( char *path );
  68. /****************************************************************************
  69. * Semi-Public Externals
  70. ****************************************************************************/
  71. extern int _DtHelpCloseVolume (
  72. _DtHelpVolumeHdl vol );
  73. extern int _DtHelpCeFindId (
  74. _DtHelpVolumeHdl vol,
  75. char *target_id,
  76. int fd,
  77. char **ret_name,
  78. int *ret_offset );
  79. extern int _DtHelpCeFindKeyword (
  80. _DtHelpVolumeHdl vol,
  81. char *target,
  82. char ***ret_ids );
  83. extern int _DtHelpCeGetKeywordList (
  84. _DtHelpVolumeHdl vol,
  85. char ***ret_keywords );
  86. extern int _DtHelpCeGetTopTopicId (
  87. _DtHelpVolumeHdl vol,
  88. char **ret_idString );
  89. extern char *_DtHelpCeGetVolumeName(
  90. _DtHelpVolumeHdl vol);
  91. extern char *_DtHelpGetVolumeLocale (
  92. _DtHelpVolumeHdl volume);
  93. extern int _DtHelpOpenVolume (
  94. char *volFile,
  95. _DtHelpVolumeHdl*retVol );
  96. extern int _DtHelpCeUpVolumeOpenCnt (
  97. _DtHelpVolumeHdl volume);
  98. #endif /* _DtHelpAccess_h */