AccessI.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: AccessI.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 _DtHelpAccessI_h
  45. #define _DtHelpAccessI_h
  46. #ifndef _XtIntrinsic_h
  47. /*
  48. * typedef Boolean
  49. */
  50. #ifdef CRAY
  51. typedef long Boolean;
  52. #else
  53. typedef char Boolean;
  54. #endif
  55. #endif
  56. #ifndef _XLIB_H_
  57. #ifndef True
  58. #define True 1
  59. #endif
  60. #ifndef TRUE
  61. #define TRUE 1
  62. #endif
  63. #ifndef False
  64. #define False 0
  65. #endif
  66. #ifndef FALSE
  67. #define FALSE 0
  68. #endif
  69. #endif
  70. /******************************************************************************
  71. * Semi-Public Structures
  72. ******************************************************************************/
  73. typedef struct {
  74. char match;
  75. char *substitution;
  76. } _DtSubstitutionRec;
  77. typedef struct _dtHelpCeLockInfo {
  78. int fd;
  79. _DtHelpVolumeHdl volume;
  80. } _DtHelpCeLockInfo;
  81. /******************************************************************************
  82. * Semi-Public Access Functions
  83. ******************************************************************************/
  84. extern char *_DtHelpCeExpandPathname (
  85. char *spec,
  86. char *filename,
  87. char *type,
  88. char *suffix,
  89. char *lang,
  90. _DtSubstitutionRec *subs,
  91. int num );
  92. extern int _DtHelpCeFileOpenAndSeek(
  93. char *filename,
  94. int offset,
  95. int fd,
  96. BufFilePtr *ret_file,
  97. time_t *ret_time);
  98. extern int _DtHelpCeGetDocStamp (
  99. _DtHelpVolumeHdl volume,
  100. char **ret_doc,
  101. char **ret_time);
  102. extern int _DtHelpCeGetLangSubParts (
  103. char *lang,
  104. char **subLang,
  105. char **subTer,
  106. char **subCodeSet );
  107. extern int _DtHelpCeGetTopicChildren(
  108. _DtHelpVolumeHdl volume,
  109. char *topic_id,
  110. char ***ret_childs);
  111. extern int _DtHelpGetTopicTitle(
  112. _DtHelpVolumeHdl volume,
  113. char *target_id,
  114. char **ret_title);
  115. extern int _DtHelpCeGetUncompressedFileName (
  116. char *name,
  117. char **ret_name);
  118. extern const char *_DtHelpCeGetVolumeCharSet (
  119. _DtHelpVolumeHdl volume);
  120. extern int _DtHelpCeGetVolumeFlag (
  121. _DtHelpVolumeHdl volume);
  122. extern int _DtHelpCeIsTopTopic(
  123. _DtHelpVolumeHdl volume,
  124. const char *id);
  125. extern int _DtHelpCeLockVolume(
  126. _DtHelpVolumeHdl volume,
  127. _DtHelpCeLockInfo *ret_info);
  128. extern int _DtHelpCeMapTargetToId (
  129. _DtHelpVolumeHdl volume,
  130. char *target_id,
  131. char **ret_id);
  132. extern int _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info);
  133. #endif /* _DtHelpAccessI_h */