Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenofw_method.c
Go to the documentation of this file.
00001 #include <freeldr.h> 00002 #include "of.h" 00003 00004 typedef struct _ofw_method_call { 00005 const char *call_method; 00006 int nargs; 00007 int nrets; 00008 const char *method_name; 00009 int handle; 00010 int args_rets[8]; 00011 } ofw_method_call; 00012 00013 extern int (*ofw_call_addr)(void *argstruct); 00014 00015 int ofw_callmethod_ret(const char *method, int handle, int nargs, int *args, int ret) 00016 { 00017 ofw_method_call callframe = { 0 }; 00018 callframe.call_method = "call-method"; 00019 callframe.nargs = nargs + 2; 00020 callframe.nrets = ret+1; 00021 callframe.method_name = method; 00022 callframe.handle = handle; 00023 memcpy(callframe.args_rets, args, sizeof(int)*nargs); 00024 ofw_call_addr(&callframe); 00025 return callframe.args_rets[nargs+ret]; 00026 } Generated on Sun May 27 2012 04:19:09 for ReactOS by
1.7.6.1
|