ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ofw_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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.