#include #include #include module Bindings.Libgit2.Tree where #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 -> CUInt -> IO (CInt) #cinline git_tree_free , Ptr -> IO () #ccall git_tree_id , Ptr -> IO (Ptr ) #ccall git_tree_entrycount , Ptr -> IO (CUInt) #ccall git_tree_entry_byname , Ptr -> CString -> IO (Ptr ) #ccall git_tree_entry_byindex , Ptr -> CUInt -> IO (Ptr ) #ccall git_tree_entry_attributes , Ptr -> IO (CUInt) #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_to_object , Ptr (Ptr ) -> Ptr -> Ptr -> IO (CInt) #ccall git_tree_create_fromindex , Ptr -> Ptr -> IO (CInt) #ccall git_treebuilder_create , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_treebuilder_clear , Ptr -> IO () #ccall git_treebuilder_free , Ptr -> IO () #ccall git_treebuilder_get , Ptr -> CString -> IO (Ptr ) #ccall git_treebuilder_insert , Ptr (Ptr ) -> Ptr -> CString -> Ptr -> CUInt -> IO (CInt) #ccall git_treebuilder_remove , Ptr -> CString -> IO (CInt) #callback git_treebuilder_filter_callback , Ptr -> Ptr () -> IO CInt #ccall git_treebuilder_filter , Ptr -> -> Ptr () -> IO () #ccall git_treebuilder_write , Ptr -> Ptr -> Ptr -> IO (CInt) #ccall git_tree_get_subtree , Ptr (Ptr ) -> Ptr -> CString -> IO (CInt) {- typedef int (* git_treewalk_cb)(const char * root, git_tree_entry * entry, void * payload); -} #synonym_t git_treewalk_cb , CInt {- enum git_treewalk_mode { GIT_TREEWALK_PRE = 0, GIT_TREEWALK_POST = 1 }; -} #num GIT_TREEWALK_PRE #num GIT_TREEWALK_POST #ccall git_tree_walk , Ptr -> CInt -> CInt -> Ptr () -> IO (CInt)