summaryrefslogtreecommitdiff
path: root/objective-c/include/objc/Ice/DispatchInterceptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'objective-c/include/objc/Ice/DispatchInterceptor.h')
-rw-r--r--objective-c/include/objc/Ice/DispatchInterceptor.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/objective-c/include/objc/Ice/DispatchInterceptor.h b/objective-c/include/objc/Ice/DispatchInterceptor.h
new file mode 100644
index 00000000000..81516efeb0a
--- /dev/null
+++ b/objective-c/include/objc/Ice/DispatchInterceptor.h
@@ -0,0 +1,27 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#import <objc/Ice/Object.h>
+
+ICE_API @protocol ICEDispatchInterceptor <ICEObject>
+-(BOOL) dispatch:(id<ICERequest>)request;
+@end
+
+ICE_API @interface ICEDispatchInterceptor : ICEServant
+@end
+
+ICE_API @interface ICEMainThreadDispatch : ICEDispatchInterceptor<ICEDispatchInterceptor>
+{
+ ICEObject* servant;
+}
+
+-(id)init:(ICEObject*)servant;
++(id)mainThreadDispatch:(ICEObject*)servant;
+@end
+