ReactOS  0.4.14-dev-49-gfb4591c
ofw_method.c File Reference
#include <freeldr.h>
#include "of.h"
Include dependency graph for ofw_method.c:

Go to the source code of this file.

Classes

struct  _ofw_method_call
 

Typedefs

typedef struct _ofw_method_call ofw_method_call
 

Functions

int ofw_callmethod_ret (const char *method, int handle, int nargs, int *args, int ret)
 

Variables

int(* ofw_call_addr )(void *argstruct)
 

Typedef Documentation

◆ ofw_method_call

Function Documentation

◆ ofw_callmethod_ret()

int ofw_callmethod_ret ( const char method,
int  handle,
int  nargs,
int args,
int  ret 
)

Definition at line 15 of file ofw_method.c.

16 {
17  ofw_method_call callframe = { 0 };
18  callframe.call_method = "call-method";
19  callframe.nargs = nargs + 2;
20  callframe.nrets = ret+1;
21  callframe.method_name = method;
22  callframe.handle = handle;
23  memcpy(callframe.args_rets, args, sizeof(int)*nargs);
24  ofw_call_addr(&callframe);
25  return callframe.args_rets[nargs+ret];
26 }
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
Definition: sock.c:82
Definition: match.c:390
const char * method_name
Definition: ofw_method.c:8
int args_rets[8]
Definition: ofw_method.c:10
method
Definition: dragdrop.c:53
int ret
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
const char * call_method
Definition: ofw_method.c:5
int(* ofw_call_addr)(void *argstruct)

Referenced by MmuTranslate().

Variable Documentation

◆ ofw_call_addr

int(* ofw_call_addr) (void *argstruct)

Referenced by ofw_callmethod_ret().