Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
fix: Make APIClient Input Stream delegable
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Jul 13, 2024
1 parent b9ab66b commit 126a382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions BTFuse/BTFuse/BTFuseAPIClientInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ limitations under the License.
@property (readonly) BOOL hasBytesAvailable;
@property (readonly) NSStreamStatus streamStatus;
@property (nullable, readonly, copy) NSError* streamError;
@property (nullable, atomic, weak) id<NSStreamDelegate> delegate;

- (instancetype _Nonnull) init:(nw_connection_t _Nonnull) connection;

Expand Down
2 changes: 2 additions & 0 deletions BTFuse/src/BTFuseAPIClientInputStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ @implementation BTFuseAPIClientInputStream {
NSStreamStatus _streamStatus;
NSError* _streamError;
dispatch_queue_t $readQueue;
id<NSStreamDelegate> _delegate;
}

@synthesize hasBytesAvailable;
@synthesize streamStatus;
@synthesize streamError;
@synthesize delegate;

- (instancetype) init:(nw_connection_t) connection {

Expand Down

0 comments on commit 126a382

Please sign in to comment.