File: InvokeProxyProtocol.h

package info (click to toggle)
gnustep-base 1.31.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,580 kB
  • sloc: objc: 239,446; ansic: 36,519; cpp: 122; sh: 112; makefile: 100; xml: 32
file content (50 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* InvokeProxyProtocol.h - protocol for simple target and proxy classes 

   Written By: Adam Fedor <fedor@gnu.org>
*/
#import <Foundation/NSGeometry.h>
#import <Foundation/NSObject.h>

typedef struct {
  char	c;
  int	i;
} smallStruct;

typedef struct {
    int		i;
    char	*s;
    float	f;
} largeStruct;

@protocol InvokeTarget
- (char) loopChar: (char)v;
- (double) loopDouble: (double)v;
- (float) loopFloat: (float)v;
- (int) loopInt: (int)v;
- (largeStruct) loopLarge: (largeStruct)v;
- (long) loopLong: (long)v;
- (largeStruct) loopLargePtr: (largeStruct*)v;
- (id) loopObject: (id)v;
- (NSRect) loopRect: (NSRect)v;
- (short) loopShort: (short)v;
- (smallStruct) loopSmall: (smallStruct)v;
- (smallStruct) loopSmallPtr: (smallStruct*)v;
- (char*) loopString: (char*)v;

- (char) retChar;
- (double) retDouble;
- (float) retFloat;
- (int) retInt;
- (largeStruct) retLarge;
- (long) retLong;
- (id) retObject;
- (short) retShort;
- (smallStruct) retSmall;
- (char*) retString;
@end

@protocol InvokeProxy 
- (id) initWithTarget: (id)target;
@end