diff --git a/Headers/gnustep/base/Streaming.h b/Headers/gnustep/base/Streaming.h index 14cff1c25..80adfaf1e 100644 --- a/Headers/gnustep/base/Streaming.h +++ b/Headers/gnustep/base/Streaming.h @@ -1,5 +1,5 @@ /* Protocol for GNU Objective C byte streams - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: April 1995 @@ -34,14 +34,12 @@ - (int) writeBytes: (const void*)b length: (int)l; - (int) readBytes: (void*)b length: (int)l; -- (int) writeFormat: (const char *)format, ...; -- (int) readFormat: (const char *)format, ...; +- (int) writeFormat: (id )format, ...; +- (int) readFormat: (id )format, ...; -- (void) writeLine: (const char *)l; -- (char *) readLine; +- (void) writeLine: (id )l; +- (id ) readLine; -- (void) rewindStream; -- (void) setStreamPosition: (unsigned)i; - (unsigned) streamPosition; - (BOOL) isAtEof; - (void) flushStream; @@ -50,5 +48,13 @@ @end +@protocol SeekableStreaming + +- (void) rewindStream; +- (void) setStreamPosition: (unsigned)i; + +@end + + #endif /* __Streaming_h__OBJECTS_INCLUDE */ diff --git a/Source/objects/Streaming.h b/Source/objects/Streaming.h index 14cff1c25..80adfaf1e 100644 --- a/Source/objects/Streaming.h +++ b/Source/objects/Streaming.h @@ -1,5 +1,5 @@ /* Protocol for GNU Objective C byte streams - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: R. Andrew McCallum Date: April 1995 @@ -34,14 +34,12 @@ - (int) writeBytes: (const void*)b length: (int)l; - (int) readBytes: (void*)b length: (int)l; -- (int) writeFormat: (const char *)format, ...; -- (int) readFormat: (const char *)format, ...; +- (int) writeFormat: (id )format, ...; +- (int) readFormat: (id )format, ...; -- (void) writeLine: (const char *)l; -- (char *) readLine; +- (void) writeLine: (id )l; +- (id ) readLine; -- (void) rewindStream; -- (void) setStreamPosition: (unsigned)i; - (unsigned) streamPosition; - (BOOL) isAtEof; - (void) flushStream; @@ -50,5 +48,13 @@ @end +@protocol SeekableStreaming + +- (void) rewindStream; +- (void) setStreamPosition: (unsigned)i; + +@end + + #endif /* __Streaming_h__OBJECTS_INCLUDE */