~ubuntu-branches/ubuntu/edgy/sope/edgy

« back to all changes in this revision

Viewing changes to libFoundation/Foundation/NSMethodSignature.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Ley
  • Date: 2005-08-19 16:53:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050819165331-hs683wz1osm708pw
Tags: upstream-4.4rc.2
ImportĀ upstreamĀ versionĀ 4.4rc.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
   NSMethodSignature.h
 
3
 
 
4
   Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea.
 
5
   All rights reserved.
 
6
 
 
7
   Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
 
8
 
 
9
   This file is part of libFoundation.
 
10
 
 
11
   Permission to use, copy, modify, and distribute this software and its
 
12
   documentation for any purpose and without fee is hereby granted, provided
 
13
   that the above copyright notice appear in all copies and that both that
 
14
   copyright notice and this permission notice appear in supporting
 
15
   documentation.
 
16
 
 
17
   We disclaim all warranties with regard to this software, including all
 
18
   implied warranties of merchantability and fitness, in no event shall
 
19
   we be liable for any special, indirect or consequential damages or any
 
20
   damages whatsoever resulting from loss of use, data or profits, whether in
 
21
   an action of contract, negligence or other tortious action, arising out of
 
22
   or in connection with the use or performance of this software.
 
23
*/
 
24
 
 
25
#ifndef __NSMethodSignature_h__
 
26
#define __NSMethodSignature_h__
 
27
 
 
28
#include <Foundation/NSObject.h>
 
29
 
 
30
typedef struct {
 
31
    int offset;
 
32
    int size;
 
33
    const char* type;
 
34
} NSArgumentInfo;
 
35
 
 
36
@interface NSMethodSignature : NSObject
 
37
{
 
38
    char *types;
 
39
    int  numberOfArguments;
 
40
}
 
41
 
 
42
+ (NSMethodSignature*)signatureWithObjCTypes:(const char*)types;
 
43
 
 
44
- (NSArgumentInfo)argumentInfoAtIndex:(unsigned)index;
 
45
- (const char *)getArgumentTypeAtIndex:(unsigned int)_index; // new in Rhapsody
 
46
 
 
47
- (unsigned)frameLength;
 
48
- (BOOL)isOneway;
 
49
- (unsigned)methodReturnLength;
 
50
- (const char*)methodReturnType;
 
51
- (unsigned)numberOfArguments;
 
52
@end
 
53
 
 
54
@interface NSMethodSignature (Extensions)
 
55
- (const char *)types;
 
56
- (unsigned)sizeOfStackArguments;
 
57
- (unsigned)sizeOfRegisterArguments;
 
58
- (unsigned)typeSpecifiersOfArgumentAt:(int)index;
 
59
- (BOOL)isInArgumentAt:(int)index;
 
60
- (BOOL)isOutArgumentAt:(int)index;
 
61
- (BOOL)isBycopyArgumentAt:(int)index;
 
62
@end
 
63
 
 
64
@interface NSMethodSignature(GNUstepCompatibility)
 
65
- (const char *)methodType;
 
66
@end
 
67
 
 
68
#endif /* __NSMethodSignature_h__ */
 
69
 
 
70
/*
 
71
  Local Variables:
 
72
  c-basic-offset: 4
 
73
  tab-width: 8
 
74
  End:
 
75
*/