FormatSDLI.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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: FormatSDLI.h /main/5 1995/10/26 12:22:04 rswiston $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. ** File: FormatSDLI.h
  27. ** Project: Common Desktop Environment
  28. **
  29. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  30. **
  31. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  32. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  33. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  34. ** (c) Copyright 1993, 1994 Novell, Inc.
  35. ****************************************************************************
  36. ************************************<+>*************************************/
  37. #ifndef _DtHelpFormatSDLI_h
  38. #define _DtHelpFormatSDLI_h
  39. #include <sys/stat.h>
  40. /******** Semi-Private Function Declarations ********/
  41. extern int _DtHelpCeFrmtSDLTitleToAscii(
  42. _DtHelpVolumeHdl volume_handle,
  43. int offset,
  44. char **ret_title,
  45. char **ret_abbrev);
  46. extern char *_DtHelpCeFrmtSdlVolumeAbstractToAscii(
  47. _DtHelpVolumeHdl volume);
  48. extern int _DtHelpCeFrmtSdlPathAndChildren(
  49. _DtHelpVolumeHdl volume,
  50. _FrmtUiInfo *ui_info,
  51. int fd,
  52. char *target_id,
  53. _DtCvTopicPtr *ret_handle);
  54. extern int _DtHelpCeGetSdlTitleChunks(
  55. _DtHelpVolumeHdl volume,
  56. char *loc_id,
  57. _FrmtUiInfo *ui_info,
  58. void ***ret_chunks);
  59. extern int _DtHelpCeGetSdlVolIds(
  60. _DtHelpVolumeHdl volume,
  61. int fd,
  62. _DtCvSegment **ret_loids);
  63. extern int _DtHelpCeGetSdlVolIndex(
  64. _DtHelpVolumeHdl volume);
  65. extern int _DtHelpCeGetSdlVolTitleChunks(
  66. _DtHelpVolumeHdl volume,
  67. _FrmtUiInfo *ui_info,
  68. void ***ret_chunks);
  69. extern int _DtHelpCeFrmtSDLVolTitleToAscii(
  70. _DtHelpVolumeHdl volume,
  71. _FrmtUiInfo *ui_info,
  72. char **ret_title);
  73. extern _DtCvSegment *_DtHelpCeGetSdlVolToss(
  74. _DtHelpVolumeHdl volume,
  75. int fd);
  76. extern _DtCvSegment *_DtHelpCeMapIdToLoidEntry(
  77. _DtCvSegment *id_segs,
  78. char *target_id);
  79. extern int _DtHelpCeFrmtSdlVolumeInfo(
  80. char *filename,
  81. _DtHelpVolumeHdl volume,
  82. time_t *ret_time);
  83. extern const SDLAttribute *_DtHelpCeGetSdlAttributeList(void);
  84. extern int _DtHelpCeParseSdlTopic(
  85. _DtHelpVolumeHdl volume,
  86. _FrmtUiInfo *ui_info,
  87. int fd,
  88. int offset,
  89. char *id_string,
  90. int rich_text,
  91. _DtCvTopicPtr *ret_handle);
  92. /******** End Public Function Declarations ********/
  93. #endif /* _DtHelpFormatSDLI_h */