2000-12-08 19:06:00 +00:00
|
|
|
/* callframe - Wrapper/Objective-C interface for ffcall function interface
|
|
|
|
|
|
|
|
Copyright (C) 2000, Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Adam Fedor <fedor@gnu.org>
|
|
|
|
Created: Nov 2000
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2005-05-22 03:32:16 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2000-12-08 19:06:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef callframe_h_INCLUDE
|
|
|
|
#define callframe_h_INCLUDE
|
|
|
|
|
2003-06-07 01:24:41 +00:00
|
|
|
#include "Foundation/NSMethodSignature.h"
|
2003-07-31 23:49:32 +00:00
|
|
|
#include "GNUstepBase/DistributedObjects.h"
|
2000-12-08 19:06:00 +00:00
|
|
|
|
|
|
|
@class NSInvocation;
|
|
|
|
|
|
|
|
typedef struct _callframe_t {
|
|
|
|
int nargs;
|
|
|
|
void *rtype;
|
|
|
|
void **args;
|
|
|
|
} callframe_t;
|
|
|
|
|
|
|
|
extern callframe_t *callframe_from_info (NSArgumentInfo *info, int numargs,
|
|
|
|
void **retval);
|
|
|
|
extern void callframe_set_arg(callframe_t *cframe, int index, void *buffer,
|
|
|
|
int size);
|
|
|
|
extern void callframe_get_arg(callframe_t *cframe, int index, void *buffer,
|
|
|
|
int size);
|
|
|
|
extern void *callframe_arg_addr(callframe_t *cframe, int index);
|
|
|
|
|
2001-09-19 21:31:18 +00:00
|
|
|
extern void callframe_do_call (DOContext *ctxt,
|
|
|
|
void(*decoder)(DOContext*),
|
|
|
|
void(*encoder)(DOContext*));
|
2000-12-08 19:06:00 +00:00
|
|
|
extern void callframe_build_return (NSInvocation *inv,
|
|
|
|
const char *type,
|
|
|
|
BOOL out_parameters,
|
2001-09-19 21:31:18 +00:00
|
|
|
void(*decoder)(DOContext*),
|
|
|
|
DOContext* ctxt);
|
2000-12-08 19:06:00 +00:00
|
|
|
#endif
|
|
|
|
|