mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Changes for NSStream support, especially in mingw32 ... not yet complete.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22693 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6ec821f364
commit
3d99e46faf
22 changed files with 1561 additions and 1863 deletions
|
@ -118,26 +118,22 @@ typedef enum {
|
|||
ET_HANDLE, /* Watch for an I/O event on a handle. */
|
||||
ET_RPORT, /* Watch for message arriving on port. */
|
||||
ET_WINMSG, /* Watch for a message on a window handle. */
|
||||
ET_INSTREAM, /* Watch for event on input stream. */
|
||||
ET_OUTSTREAM /* Watch for event on output stream. */
|
||||
ET_TRIGGER /* Trigger immediately when the loop runs. */
|
||||
#else
|
||||
ET_RDESC, /* Watch for descriptor becoming readable. */
|
||||
ET_WDESC, /* Watch for descriptor becoming writeable. */
|
||||
ET_RPORT, /* Watch for message arriving on port. */
|
||||
ET_EDESC, /* Watch for descriptor with out-of-band data. */
|
||||
ET_INSTREAM, /* Watch for event on input stream. */
|
||||
ET_OUTSTREAM /* Watch for event on output stream. */
|
||||
ET_TRIGGER /* Trigger immediately when the loop runs. */
|
||||
#endif
|
||||
} RunLoopEventType;
|
||||
@protocol RunLoopEvents
|
||||
- (NSDate*) timedOutEvent: (void*)data
|
||||
type: (RunLoopEventType)type
|
||||
forMode: (NSString*)mode;
|
||||
- (void) receivedEvent: (void*)data
|
||||
type: (RunLoopEventType)type
|
||||
extra: (void*)extra
|
||||
forMode: (NSString*)mode;
|
||||
@end
|
||||
@class NSStream;
|
||||
@interface NSRunLoop(GNUstepExtensions)
|
||||
- (void) addEvent: (void*)data
|
||||
type: (RunLoopEventType)type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue