ReactOS  0.4.14-dev-49-gfb4591c
of.h File Reference
#include "of_call.h"
#include <string.h>
Include dependency graph for of.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OF_FAILED   0
 
#define ERR_NOT_FOUND   0xc0000010
 

Typedefs

typedef int(* of_proxy) (int table_off, void *arg1, void *arg2, void *arg3, void *arg4, void *arg5, void *arg6)
 
typedef long jmp_buf[100]
 

Functions

int setjmp (jmp_buf buf)
 
int longjmp (jmp_buf buf, int retval)
 
int ofw_callmethod_ret (const char *method, int handle, int nargs, int *args, int ret)
 

Variables

of_proxy ofproxy
 

Macro Definition Documentation

◆ ERR_NOT_FOUND

#define ERR_NOT_FOUND   0xc0000010

Definition at line 4 of file of.h.

◆ OF_FAILED

#define OF_FAILED   0

Definition at line 3 of file of.h.

Typedef Documentation

◆ jmp_buf

typedef long jmp_buf[100]

Definition at line 11 of file of.h.

◆ of_proxy

typedef int(* of_proxy) (int table_off, void *arg1, void *arg2, void *arg3, void *arg4, void *arg5, void *arg6)

Definition at line 10 of file of.h.

Function Documentation

◆ longjmp()

◆ 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().

◆ setjmp()

int setjmp ( jmp_buf  buf)

Variable Documentation

◆ ofproxy

of_proxy ofproxy

Definition at line 28 of file mach.c.

Referenced by MachInit(), PpcInit(), and PpcOfwInit().