From 05a704bcefd320b215397e3b3101049a1c3e9005 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Latour Date: Wed, 16 Apr 2014 00:11:24 -0300 Subject: [PATCH] Fix --- GCDWebDAVServer/GCDWebDAVServer.h | 1 + GCDWebServer/Core/GCDWebServerConnection.h | 1 + GCDWebUploader/GCDWebUploader.h | 1 + 3 files changed, 3 insertions(+) diff --git a/GCDWebDAVServer/GCDWebDAVServer.h b/GCDWebDAVServer/GCDWebDAVServer.h index 8dee89f..007829b 100644 --- a/GCDWebDAVServer/GCDWebDAVServer.h +++ b/GCDWebDAVServer/GCDWebDAVServer.h @@ -47,6 +47,7 @@ - (instancetype)initWithUploadDirectory:(NSString*)path; @end +// These methods can be called from any thread @interface GCDWebDAVServer (Subclassing) - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath; // Default implementation returns YES - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath; // Default implementation returns YES diff --git a/GCDWebServer/Core/GCDWebServerConnection.h b/GCDWebServer/Core/GCDWebServerConnection.h index 7e6cbae..ad88be0 100644 --- a/GCDWebServer/Core/GCDWebServerConnection.h +++ b/GCDWebServer/Core/GCDWebServerConnection.h @@ -39,6 +39,7 @@ @property(nonatomic, readonly) NSUInteger totalBytesWritten; @end +// These methods can be called from any thread @interface GCDWebServerConnection (Subclassing) - (BOOL)open; // Return NO to reject connection e.g. after validating local or remote addresses - (void)didReadBytes:(const void*)bytes length:(NSUInteger)length; // Called after data has been read from the connection diff --git a/GCDWebUploader/GCDWebUploader.h b/GCDWebUploader/GCDWebUploader.h index 109ecc5..30b18c3 100644 --- a/GCDWebUploader/GCDWebUploader.h +++ b/GCDWebUploader/GCDWebUploader.h @@ -51,6 +51,7 @@ - (instancetype)initWithUploadDirectory:(NSString*)path; @end +// These methods can be called from any thread @interface GCDWebUploader (Subclassing) - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath; // Default implementation returns YES - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath; // Default implementation returns YES