home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 580a.lha / hdf_utilities / src.LZH / src / include / dfp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-29  |  3.4 KB  |  115 lines

  1. /*****************************************************************************
  2. *              NCSA HDF version 3.10r5
  3. *                 October 24, 1991
  4. *
  5. * NCSA HDF Version 3.10r5 source code and documentation are in the public
  6. * domain.  Specifically, we give to the public domain all rights for future
  7. * licensing of the source code, all resale rights, and all publishing rights.
  8. * We ask, but do not require, that the following message be included in all
  9. * derived works:
  10. * Portions developed at the National Center for Supercomputing Applications at
  11. * the University of Illinois at Urbana-Champaign.
  12. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  13. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  14. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  15. *****************************************************************************/
  16. /*
  17. $Header: /pita/work/HDF/dev/RCS/src/dfp.h,v 1.1 1991/10/22 17:56:10 dilg beta $
  18.  
  19. $Log: dfp.h,v $
  20.  * Revision 1.1  1991/10/22  17:56:10  dilg
  21.  * Initial revision
  22.  *
  23. */
  24. #ifndef DFP /* avoid re-inclusion */
  25.  
  26. #define DFP
  27. #include <hdf/df.h>
  28. #define uint8 unsigned char
  29.  
  30. /*----------------------------------------------------------------------------*/
  31. /*                           Function Prototypes                              */
  32.  
  33. #if defined __STDC__ || defined PC
  34.  
  35. #ifdef PC
  36.  
  37. /* prototypes for dfp.c */
  38.  
  39. extern int DFPgetpal(char huge *filename, uint8 huge *palette);
  40. extern int DFPputpal(char huge *filename, uint8 huge *palette, int overwrite,
  41.                      char huge *filemode);
  42. extern int DFPaddpal(char huge *filename, uint8 huge *palette);
  43. extern int DFPnpals(char huge *filename);
  44. extern int DFPreadref(char huge *filename, uint16 ref);
  45. extern int DFPwriteref(char huge *filename, uint16 ref);
  46. extern int DFPrestart(void);
  47. extern int DFPlastref(void);
  48. extern DF huge *DFPIopen(char huge *filename, int access);
  49.  
  50.  
  51. #else /* __STDC__ && !PC */
  52.  
  53. #if defined c_plusplus || defined __cplusplus
  54. extern "C" {
  55. #endif /* c_plusplus || __cplusplus */
  56.  
  57. /* prototypes for dfp.c */
  58.  
  59. extern int DFPgetpal(char *filename, uint8 *palette);
  60. extern int DFPputpal(char *filename, uint8 *palette, int overwrite,
  61.                      char *filemode);
  62. extern int DFPaddpal(char *filename, uint8 *palette);
  63. extern int DFPnpals(char *filename);
  64. extern int DFPreadref(char *filename, uint16 ref);
  65. extern int DFPwriteref(char *filename, uint16 ref);
  66. extern int DFPrestart(void);
  67. extern int DFPlastref(void);
  68. extern DF *DFPIopen(char *filename, int access);
  69.  
  70.  
  71. /* prototypes for dfpF.c */
  72.  
  73. extern int dpigpal_(char *filename, char *pal, int *fnlen);
  74. extern int dpippal_(char *filename, char *pal, int *overwrite, char *filemode,
  75.                     int *fnlen);
  76. extern int dpinpal_(char *filename, int *fnlen);
  77. extern int dpirref_(char *filename, uint16 *ref, int *fnlen);
  78. extern int dpiwref_(char *filename, uint16 *ref, int *fnlen);
  79. extern int dprest_(void);
  80. extern int dplref_(void);
  81. extern int dfprestart_(void);
  82. extern int dfplastref_(void);
  83.  
  84. #if defined c_plusplus || defined __cplusplus
  85. }
  86. #endif /* c_plusplus || __cplusplus */
  87.  
  88. #endif /* PC */
  89.  
  90. #else /* !__STDC__ */
  91.  
  92.  
  93. /* prototypes for dfp.c */
  94.  
  95. extern int DFPgetpal();
  96. extern int DFPputpal();
  97. extern int DFPaddpal();
  98. extern int DFPnpals();
  99. extern int DFPreadref();
  100. extern int DFPwriteref();
  101. extern int DFPrestart();
  102. extern int DFPlastref();
  103. extern DF *DFPIopen();
  104.  
  105.  
  106. #endif /* __STDC__ */
  107.  
  108. #endif /* DFP */
  109.  
  110.