2002.08.07 17:27 "On the Necessity of tiff->tif_fd", by Elizabeth Barham

2002.08.07 17:27 "On the Necessity of tiff->tif_fd", by Elizabeth Barham

Hi,

Is it vital that when using TIFFClientOpen that tif->tif_fd be set? If tif->tif_fd is not set, will it break libtiff?

For example,

        tif = TIFFClientOpen( "MemSource", pInfo->mode, (thandle_t)pInfo,
                                                 _tiffReadProc, _tiffWriteProc,
                                                  _tiffSeekProc, _tiffCloseProc, _tiffSizeProc,
                                           _tiffDummyMapProc, _tiffDummyUnmapProc);
      if (tif)
                tif->tif_fd = (int)pInfo;

This causes the inclusion of the "tifiop.h" file but I would rather it not. To the best of my knowledge, it is only used for the tiff struct definition. Is there any good reason why I should keep the last two lines?

Thank you, Elizabeth