Sha256: 81c3bfab2963dd9515ccd8d8d19d414069c5c1d4783b188af5f0a08d8deee61e
Contents?: true
Size: 787 Bytes
Versions: 1
Compression:
Stored size: 787 Bytes
Contents
/* * File: Callback.h * Author: wayne * * Created on September 11, 2008, 10:01 AM */ #ifndef _CALLBACK_H #define _CALLBACK_H #include "Types.h" #ifdef __cplusplus extern "C" { #endif #include <ffi.h> typedef struct { NativeType returnType; NativeType* parameterTypes; ffi_type* ffiReturnType; ffi_type** ffiParameterTypes; ffi_cif ffi_cif; int parameterCount; int flags; ffi_abi abi; } CallbackInfo; typedef struct { void* code; ffi_closure* ffi_closure; ffi_cif ffi_cif; int flags; CallbackInfo* cbInfo; VALUE rbCallbackInfo; VALUE rbProc; } NativeCallback; extern VALUE rb_FFI_CallbackInfo_class; extern VALUE rb_FFI_NativeCallback_new(VALUE, VALUE); #ifdef __cplusplus } #endif #endif /* _CALLBACK_H */
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-0.2.0 | ext/Callback.h |