home *** CD-ROM | disk | FTP | other *** search
/ Chip: Special Computer Graphics & Animation / Chip-Special-Computergrafik.bin / programs / povray / povsrc.sea / POVSRC / SOURCE / FileQueue.h < prev    next >
Text File  |  1994-02-04  |  3KB  |  91 lines

  1. /*
  2. ==============================================================================
  3. Project:    POV-Ray
  4.  
  5. Version:    2.2
  6.  
  7. File Name:    FileQueue.h
  8.  
  9. Description:
  10.     Generic Macintosh File Spec queueing routine.  This is intended to
  11.     be used to collect the list of files passed in via System 7 ODOC
  12.     AppleEvents, for processing at a more convenient time.
  13.  
  14.     This is the header file, containing the public definitions for
  15.     the useful external functions.
  16.  
  17. Related Files:
  18.     FileQueue.c    - Main implementation for these routines
  19. ------------------------------------------------------------------------------
  20. Author:
  21.     Eduard [esp] Schwan
  22. ------------------------------------------------------------------------------
  23.     from Persistence of Vision Raytracer
  24.     Copyright 1993 Persistence of Vision Team
  25. ------------------------------------------------------------------------------
  26.     NOTICE: This source code file is provided so that users may experiment
  27.     with enhancements to POV-Ray and to port the software to platforms other 
  28.     than those supported by the POV-Ray Team.  There are strict rules under
  29.     which you are permitted to use this file.  The rules are in the file
  30.     named POVLEGAL.DOC which should be distributed with this file. If 
  31.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  32.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  33.     Forum.  The latest version of POV-Ray may be found there as well.
  34.  
  35.     This program is based on the popular DKB raytracer version 2.12.
  36.     DKBTrace was originally written by David K. Buck.
  37.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  38. ------------------------------------------------------------------------------
  39. More Info:
  40.     This Macintosh version of POV-Ray was created and compiled by Jim Nitchals
  41.     (Think 5.0) and Eduard Schwan (MPW 3.2), based (loosely) on the original
  42.     port by Thomas Okken and David Lichtman, with some help from Glenn Sugden.
  43.  
  44.     For bug reports regarding the Macintosh version, you should contact:
  45.     Eduard [esp] Schwan
  46.         CompuServe: 71513,2161
  47.         Internet: jl.tech@applelink.apple.com
  48.         AppleLink: jl.tech
  49.     Jim Nitchals
  50.         Compuserve: 73117,3020
  51.         America Online: JIMN8
  52.         Internet: jimn8@aol.com -or- jimn8@applelink.apple.com
  53.         AppleLink: JIMN8
  54. ------------------------------------------------------------------------------
  55. Change History:
  56.     920820    [esp]    Created
  57.     931001    [esp]    version 2.0 finished (Released on 10/4/93)
  58. ==============================================================================
  59. */
  60.  
  61. #if !defined(FILEQUEUE_H)
  62. #define FILEQUEUE_H
  63.  
  64.  
  65. #include <Files.h>        // FSSpec def
  66.  
  67. // This is the linked list structure to hold a list of file names.
  68. typedef struct
  69. {
  70.     FSSpec        fFSSpec;
  71.     Handle        fNext;
  72. } flistrec_t, *flistptr_t, **flisthdl_t;
  73.  
  74.  
  75. // Construct queue
  76. void FileQ_c(void);
  77.  
  78. // Add an item to the queue
  79. void FileQ_Put(FSSpecPtr    pFSSpecPtr);
  80.  
  81. // Retrieve an item from the queue
  82. Boolean FileQ_Get(FSSpecPtr    pFSSpecPtr);
  83.  
  84. // Return the # of items in the queue
  85. short FileQ_NumItems(void);
  86.  
  87. // Destroy queue
  88. void FileQ_d();
  89.  
  90.  
  91. #endif // FILEQUEUE_H