{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include #include module Bindings.Libgit2.Tree where import Foreign.Ptr #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types import Bindings.Libgit2.Oid import Bindings.Libgit2.Object #cinline git_tree_lookup , Ptr (Ptr ) -> Ptr -> Ptr -> IO (CInt) #cinline git_tree_lookup_prefix , Ptr (Ptr ) -> Ptr -> Ptr -> CSize -> IO (CInt) #cinline git_tree_free , Ptr -> IO () #ccall git_tree_id , Ptr -> IO (Ptr ) #ccall git_tree_owner , Ptr -> IO (Ptr ) #ccall git_tree_entrycount , Ptr -> IO (CSize) #ccall git_tree_entry_byname , Ptr -> CString -> IO (Ptr ) #ccall git_tree_entry_byindex , Ptr -> CSize -> IO (Ptr ) #ccall git_tree_entry_byoid , Ptr -> Ptr -> IO (Ptr ) #ccall git_tree_entry_bypath , Ptr (Ptr ) -> Ptr -> CString -> IO (CInt) #ccall git_tree_entry_dup , Ptr -> IO (Ptr ) #ccall git_tree_entry_free , Ptr -> IO () #ccall git_tree_entry_name , Ptr -> IO (CString) #ccall git_tree_entry_id , Ptr -> IO (Ptr ) #ccall git_tree_entry_type , Ptr -> IO () #ccall git_tree_entry_filemode , Ptr -> IO () #ccall git_tree_entry_cmp , Ptr -> Ptr -> IO (CInt) #ccall git_tree_entry_to_object , Ptr (Ptr ) -> Ptr -> Ptr -> IO (CInt) #ccall git_treebuilder_create , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_treebuilder_clear , Ptr -> IO () #ccall git_treebuilder_entrycount , Ptr -> IO (CUInt) #ccall git_treebuilder_free , Ptr -> IO () #ccall git_treebuilder_get , Ptr -> CString -> IO (Ptr ) #ccall git_treebuilder_insert , Ptr (Ptr ) -> Ptr -> CString -> Ptr -> -> IO (CInt) #ccall git_treebuilder_remove , Ptr -> CString -> IO (CInt) {- typedef int (* git_treebuilder_filter_cb)(const git_tree_entry * entry, void * payload); -} #callback git_treebuilder_filter_cb , Ptr () -> Ptr () -> IO CInt #ccall git_treebuilder_filter , Ptr -> -> Ptr () -> IO () #ccall git_treebuilder_write , Ptr -> Ptr -> Ptr -> IO (CInt) {- typedef int (* git_treewalk_cb)(const char * root, const git_tree_entry * entry, void * payload); -} #callback git_treewalk_cb , CString -> Ptr () -> Ptr () -> IO CInt {- typedef enum { GIT_TREEWALK_PRE = 0, GIT_TREEWALK_POST = 1 } git_treewalk_mode; -} #integral_t git_treewalk_mode #num GIT_TREEWALK_PRE #num GIT_TREEWALK_POST #ccall git_tree_walk , Ptr -> -> -> Ptr () -> IO (CInt)