home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / streamsimpl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  930 b   |  36 lines

  1. /*
  2.  *    Stream implementation data structure definitions.
  3.  *
  4.  *    These definitions are not necessary if you only want to use
  5.  *    the streams package. You will need these definitions if you 
  6.  *    implement a stream.
  7.  *
  8.  */
  9.  
  10. #import "streams.h"
  11. #import <objc/zone.h>
  12. #import <objc/objc-api.h>
  13.  
  14. #ifndef STREAMS_IMPL_H
  15. #define STREAMS_IMPL_H
  16.  
  17. #define NX_DEFAULTBUFSIZE    (16 * 1024)
  18.  
  19. /*
  20.  *    Procedure declarations used in implementing streams.
  21.  */
  22.  
  23. NEXTPDO NXStream *NXStreamCreate(int mode, int createBuf);
  24. NEXTPDO NXStream *NXStreamCreateFromZone(int mode, int createBuf, NXZone *zone);
  25. NEXTPDO void NXStreamDestroy(NXStream *stream);
  26. NEXTPDO void NXChangeBuffer(NXStream *stream);
  27. NEXTPDO int NXFill(NXStream *stream);
  28.     /* NXFill should only be called when the buffer is empty */
  29.     
  30. NEXTPDO int NXDefaultWrite(NXStream *stream, const void *buf, int count);
  31. NEXTPDO int NXDefaultRead(NXStream *stream, void *buf, int count);
  32.  
  33. #endif
  34.  
  35.  
  36.