AccessI.h 4.0 KB

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