AccessP.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: AccessP.h
  28. **
  29. ** Project: Run Time Project File Access
  30. **
  31. **
  32. ** Description: Private header file for Access.h
  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 _DtAccessP_h
  45. #define _DtAccessP_h
  46. #include <sys/stat.h>
  47. typedef void* SdlVolumeHandle;
  48. typedef void* CcdfVolumeHandle;
  49. typedef union _dthelpVolumes {
  50. SdlVolumeHandle sdl_vol;
  51. CcdfVolumeHandle ccdf_vol;
  52. } DtHelpVols;
  53. /*
  54. * The following structure holds loaded volumes. The fields of this
  55. * structure should not be accessed by any code outside of the volume
  56. * module.
  57. */
  58. struct _DtHelpVolumeRec {
  59. short sdl_flag; /* The type of volume */
  60. char *volFile; /* The name of the volume file in the */
  61. /* form it was passed to _DtVolumeOpen. */
  62. char **keywords; /* A pointer to a string array */
  63. /* containing all of the keywords in */
  64. /* sorted order. This field is not loaded */
  65. /* until it is needed. */
  66. char ***keywordTopics; /* A pointer to an array of string */
  67. /* arrays. Each string array specifies */
  68. /* the list of topics which contain the */
  69. /* corresponding keyword. This field is */
  70. /* not loaded until it is needed. */
  71. DtHelpVols vols; /* Handles to format specific volume info */
  72. int openCount; /* A count of the number of times this */
  73. /* volume has been opened. */
  74. time_t check_time; /* Time this volume was last modified */
  75. struct _DtHelpVolumeRec *nextVol;
  76. /* A pointer to the next volume, used to */
  77. /* chain all of the open volumes together. */
  78. };
  79. typedef struct _DtHelpVolumeRec *_DtHelpVolume;
  80. #endif /* _DtAccessP_h */