1997-09-01 21:59:51 +00:00
|
|
|
#ifndef _server_h
|
|
|
|
#define _server_h
|
|
|
|
|
2003-07-31 23:49:32 +00:00
|
|
|
#include <GNUstepBase/preface.h>
|
|
|
|
#include <GNUstepBase/Connection.h>
|
|
|
|
#include <GNUstepBase/Array.h>
|
1997-09-01 21:59:51 +00:00
|
|
|
|
1997-09-29 14:39:53 +00:00
|
|
|
typedef struct _small_struct {
|
1997-09-01 21:59:51 +00:00
|
|
|
unsigned char z;
|
|
|
|
} small_struct;
|
1997-09-29 14:39:53 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
typedef struct _foo {
|
|
|
|
int i;
|
|
|
|
char *s;
|
|
|
|
unsigned long l;
|
|
|
|
} foo;
|
|
|
|
|
|
|
|
struct myarray {
|
|
|
|
int a[3];
|
|
|
|
};
|
|
|
|
|
|
|
|
@protocol ServerProtocol
|
|
|
|
- (void) addObject: o;
|
|
|
|
- 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;
|
|
|
|
- (foo*) sendStructPtr: (foo*)f;
|
|
|
|
- sendStruct: (foo)f;
|
|
|
|
- sendSmallStruct: (small_struct)small;
|
|
|
|
- (foo) returnStruct;
|
|
|
|
- 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;
|
|
|
|
- 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
|
|
|
|
|
|
|
|
@interface Server : NSObject <ServerProtocol>
|
|
|
|
{
|
|
|
|
id the_array;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* _server_h */
|