1994-11-04 16:29:24 +00:00
|
|
|
#ifndef _server_h
|
|
|
|
#define _server_h
|
|
|
|
|
1998-12-20 21:27:47 +00:00
|
|
|
#include <base/preface.h>
|
1997-09-01 21:59:51 +00:00
|
|
|
#include <Foundation/NSConnection.h>
|
1998-12-20 21:27:47 +00:00
|
|
|
#include <base/Array.h>
|
1994-11-04 16:29:24 +00:00
|
|
|
|
|
|
|
typedef struct _small_struct {
|
|
|
|
unsigned char z;
|
|
|
|
} small_struct;
|
|
|
|
|
|
|
|
typedef struct _foo {
|
|
|
|
int i;
|
|
|
|
char *s;
|
|
|
|
unsigned long l;
|
|
|
|
} foo;
|
|
|
|
|
|
|
|
struct myarray {
|
|
|
|
int a[3];
|
|
|
|
};
|
|
|
|
|
|
|
|
@protocol ServerProtocol
|
1996-03-07 00:39:28 +00:00
|
|
|
- (void) addObject: o;
|
1994-11-04 16:29:24 +00:00
|
|
|
- objectAt: (unsigned)i;
|
|
|
|
- (unsigned) count;
|
|
|
|
- print: (const char *)msg;
|
|
|
|
- getLong: (out unsigned long*)i;
|
|
|
|
- (oneway void) shout;
|
|
|
|
- callbackNameOn: obj;
|
|
|
|
- bounce: sender count: (int)c;
|
|
|
|
- (BOOL) doBoolean: (BOOL)b;
|
|
|
|
- getBoolean: (BOOL*)bp;
|
|
|
|
- getUCharPtr: (unsigned char *)ucp;
|
1997-09-01 21:59:51 +00:00
|
|
|
- (oneway void) outputStats:obj;
|
1994-11-04 16:29:24 +00:00
|
|
|
- (foo*) sendStructPtr: (foo*)f;
|
|
|
|
- sendStruct: (foo)f;
|
|
|
|
- sendSmallStruct: (small_struct)small;
|
|
|
|
- (foo) returnStruct;
|
1998-08-07 11:56:36 +00:00
|
|
|
- (foo) returnSetStruct: (int)x;
|
|
|
|
- (small_struct) returnSmallStruct;
|
|
|
|
- (small_struct) returnSetSmallStruct: (int)x;
|
1994-11-04 16:29:24 +00:00
|
|
|
- sendArray: (int[3])a;
|
|
|
|
- sendStructArray: (struct myarray)ma;
|
|
|
|
- sendDouble: (double)d andFloat: (float)f;
|
|
|
|
- (double*) doDoublePointer: (double*)d;
|
|
|
|
- sendCharPtrPtr: (char**)sp;
|
|
|
|
- sendBycopy: (bycopy id)o;
|
1998-03-23 20:49:54 +00:00
|
|
|
#ifdef _F_BYREF
|
|
|
|
- sendByref: (byref id)o;
|
|
|
|
#endif
|
1994-11-04 16:29:24 +00:00
|
|
|
- manyArgs: (int)i1 : (int)i2 : (int)i3 : (int)i4 : (int)i5 : (int)i6
|
|
|
|
: (int)i7 : (int)i8 : (int)i9 : (int)i10 : (int)i11 : (int)i12;
|
|
|
|
- (float) returnFloat;
|
|
|
|
- (double) returnDouble;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#if NeXT_runtime
|
|
|
|
@protocol AllProxies <ServerProtocol>
|
|
|
|
- (const char *)name;
|
|
|
|
- (unsigned) hash;
|
|
|
|
- self;
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
1996-03-07 00:39:28 +00:00
|
|
|
@interface Server : NSObject <ServerProtocol>
|
1994-11-04 16:29:24 +00:00
|
|
|
{
|
1996-03-07 00:39:28 +00:00
|
|
|
id the_array;
|
1994-11-04 16:29:24 +00:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* _server_h */
|