]> git.saurik.com Git - cycript.git/blob - sig/ffi_type.hpp
Refactored console mechanism.
[cycript.git] / sig / ffi_type.hpp
1 #ifndef SIG_FFI_TYPE_H
2 #define SIG_FFI_TYPE_H
3
4 #include <apr-1/apr_pools.h>
5 #include <ffi.h>
6
7 #include "sig/types.hpp"
8
9 namespace sig {
10
11 ffi_type *ObjectiveC(apr_pool_t *pool, struct Type *type);
12 ffi_type *Java(apr_pool_t *pool, struct Type *type);
13
14 void sig_ffi_cif(
15 apr_pool_t *pool,
16 ffi_type *(*sig_ffi_type)(apr_pool_t *, struct Type *),
17 struct Signature *signature,
18 ffi_cif *cif,
19 size_t skip = 0,
20 ffi_type **types = NULL,
21 size_t offset = 0
22 );
23
24 }
25
26 #endif/*SIG_FFI_TYPE_H*/