diff options
author | ritsuka <[email protected]> | 2014-10-31 06:58:45 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-10-31 06:58:45 +0000 |
commit | 0a865e3d000f1d16fbb4c8564c444753f63e639a (patch) | |
tree | 52fa817852a32682f15d569d1ece945f0ff1b48d /macosx/HBOutputRedirect.h | |
parent | 507b213cd091dc713c30ea4792096a3ea5074256 (diff) |
MacGui: fixed a warning in HBOutputRedirect and removed an unused ivar.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6488 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputRedirect.h')
-rw-r--r-- | macosx/HBOutputRedirect.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/macosx/HBOutputRedirect.h b/macosx/HBOutputRedirect.h index 562f09409..116463e60 100644 --- a/macosx/HBOutputRedirect.h +++ b/macosx/HBOutputRedirect.h @@ -7,6 +7,14 @@ #import <Cocoa/Cocoa.h> + +@protocol HBOutputRedirectListening <NSObject> + +- (void)stdoutRedirect:(NSString *)text; +- (void)stderrRedirect:(NSString *)text; + +@end + /** * This class is used to redirect @c stdout and @c stderr outputs. It is never * created directly; @c stdoutRedirect and @c stderrRedirect class methods @@ -31,15 +39,13 @@ /// Pointer to old write function for the stream. int (*oldWriteFunc)(void *, const char *, int); - - NSLock *lock; } + (id)stdoutRedirect; + (id)stderrRedirect; -- (void)addListener:(id)aListener; -- (void)removeListener:(id)aListener; +- (void)addListener:(id <HBOutputRedirectListening>)aListener; +- (void)removeListener:(id <HBOutputRedirectListening>)aListener; @end |