Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data DuktapeHeap Source #
type DuktapeCtx = MVar (ForeignPtr DuktapeHeap) Source #
type DukFatalFunction = Ptr DuktapeHeap -> CInt -> CString -> IO () Source #
c_duk_create_heap :: FunPtr DukAllocFunction -> FunPtr DukReallocFunction -> FunPtr DukFreeFunction -> Ptr () -> FunPtr DukFatalFunction -> IO (Ptr DuktapeHeap) Source #
c_duk_destroy_heap :: FunPtr (Ptr DuktapeHeap -> IO ()) Source #
c_duk_eval_raw :: Ptr DuktapeHeap -> CString -> CSize -> CUInt -> IO CInt Source #
c_duk_peval_lstring :: Ptr DuktapeHeap -> CString -> CSize -> IO CInt Source #
c_duk_pcall_prop :: Ptr DuktapeHeap -> CInt -> CInt -> IO CInt Source #
c_duk_put_prop_index :: Ptr DuktapeHeap -> CInt -> CInt -> IO CInt Source #
c_duk_put_prop_string :: Ptr DuktapeHeap -> CInt -> CString -> IO CInt Source #
c_duk_push_string :: Ptr DuktapeHeap -> CString -> IO CString Source #
c_duk_push_lstring :: Ptr DuktapeHeap -> CString -> CSize -> IO CString Source #
c_duk_push_number :: Ptr DuktapeHeap -> CDouble -> IO () Source #
c_duk_push_boolean :: Ptr DuktapeHeap -> CInt -> IO () Source #
c_duk_push_null :: Ptr DuktapeHeap -> IO () Source #
c_duk_push_array :: Ptr DuktapeHeap -> IO CInt Source #
c_duk_push_object :: Ptr DuktapeHeap -> IO CInt Source #
c_duk_push_c_function :: Ptr DuktapeHeap -> FunPtr (Ptr DuktapeHeap -> IO CInt) -> CInt -> IO CInt Source #
c_duk_push_global_object :: Ptr DuktapeHeap -> IO () Source #
c_duk_get_global_string :: Ptr DuktapeHeap -> CString -> IO CInt Source #
c_duk_safe_to_lstring :: Ptr DuktapeHeap -> CInt -> Ptr CSize -> IO CString Source #
c_duk_safe_to_string :: Ptr DuktapeHeap -> CInt -> IO CString Source #
c_duk_get_string :: Ptr DuktapeHeap -> CInt -> IO CString Source #
c_duk_get_lstring :: Ptr DuktapeHeap -> CInt -> Ptr CSize -> IO CString Source #
c_duk_get_int :: Ptr DuktapeHeap -> CInt -> IO CInt Source #
c_duk_get_uint :: Ptr DuktapeHeap -> CInt -> IO CUInt Source #
c_duk_get_number :: Ptr DuktapeHeap -> CInt -> IO CDouble Source #
c_duk_get_boolean :: Ptr DuktapeHeap -> CInt -> IO CInt Source #
c_duk_get_type :: Ptr DuktapeHeap -> CInt -> IO CInt Source #
c_duk_json_encode :: Ptr DuktapeHeap -> CInt -> IO CString Source #
c_duk_json_decode :: Ptr DuktapeHeap -> CInt -> IO () Source #
c_duk_push_context_dump :: Ptr DuktapeHeap -> IO () Source #
createHeap :: FunPtr DukAllocFunction -> FunPtr DukReallocFunction -> FunPtr DukFreeFunction -> Ptr () -> FunPtr DukFatalFunction -> IO (Maybe DuktapeCtx) Source #
createHeapF :: FunPtr DukFatalFunction -> IO (Maybe DuktapeCtx) Source #