{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include module Bindings.Libgit2.Remote where import Foreign.Ptr #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Repository import Bindings.Libgit2.Refspec import Bindings.Libgit2.Net import Bindings.Libgit2.Indexer import Bindings.Libgit2.Strarray import Bindings.Libgit2.Transport import Bindings.Libgit2.Types import Bindings.Libgit2.Oid {- typedef int (* git_remote_rename_problem_cb)(const char * problematic_refspec, void * payload); -} #callback git_remote_rename_problem_cb , CString -> Ptr () -> IO CInt #ccall git_remote_create , Ptr (Ptr ) -> Ptr -> CString -> CString -> IO (CInt) #ccall git_remote_create_inmemory , Ptr (Ptr ) -> Ptr -> CString -> CString -> IO (CInt) #ccall git_remote_load , Ptr (Ptr ) -> Ptr -> CString -> IO (CInt) #ccall git_remote_save , Ptr -> IO (CInt) #ccall git_remote_name , Ptr -> IO (CString) #ccall git_remote_url , Ptr -> IO (CString) #ccall git_remote_pushurl , Ptr -> IO (CString) #ccall git_remote_set_url , Ptr -> CString -> IO (CInt) #ccall git_remote_set_pushurl , Ptr -> CString -> IO (CInt) #ccall git_remote_set_fetchspec , Ptr -> CString -> IO (CInt) #ccall git_remote_fetchspec , Ptr -> IO (Ptr ) #ccall git_remote_set_pushspec , Ptr -> CString -> IO (CInt) #ccall git_remote_pushspec , Ptr -> IO (Ptr ) #ccall git_remote_connect , Ptr -> -> IO (CInt) #ccall git_remote_ls , Ptr -> -> Ptr () -> IO (CInt) #ccall git_remote_download , Ptr -> -> Ptr () -> IO (CInt) #ccall git_remote_connected , Ptr -> IO (CInt) #ccall git_remote_stop , Ptr -> IO () #ccall git_remote_disconnect , Ptr -> IO () #ccall git_remote_free , Ptr -> IO () #ccall git_remote_update_tips , Ptr -> IO (CInt) #ccall git_remote_valid_url , CString -> IO (CInt) #ccall git_remote_supported_url , CString -> IO (CInt) #ccall git_remote_list , Ptr -> Ptr -> IO (CInt) #ccall git_remote_check_cert , Ptr -> CInt -> IO () #ccall git_remote_set_cred_acquire_cb , Ptr -> -> Ptr () -> IO () #ccall git_remote_set_transport , Ptr -> Ptr -> IO (CInt) {- typedef enum git_remote_completion_type { GIT_REMOTE_COMPLETION_DOWNLOAD, GIT_REMOTE_COMPLETION_INDEXING, GIT_REMOTE_COMPLETION_ERROR } git_remote_completion_type; -} #integral_t git_remote_completion_type #num GIT_REMOTE_COMPLETION_DOWNLOAD #num GIT_REMOTE_COMPLETION_INDEXING #num GIT_REMOTE_COMPLETION_ERROR {- struct git_remote_callbacks { unsigned int version; void (* progress)(const char * str, int len, void * data); int (* completion)(git_remote_completion_type type, void * data); int (* update_tips)(const char * refname, const git_oid * a, const git_oid * b, void * data); void * payload; }; -} #callback git_remote_callbacks_progress_callback , CString -> CInt -> Ptr () -> IO () #callback git_remote_callbacks_completion_callback , -> Ptr () -> IO CInt #callback git_remote_callbacks_update_tips_callback , CString -> Ptr -> Ptr -> Ptr () -> IO CInt #starttype git_remote_callbacks #field version , CUInt #field progress , #field completion , #field update_tips , #field payload , Ptr () #stoptype #ccall git_remote_set_callbacks , Ptr -> Ptr -> IO (CInt) #ccall git_remote_stats , Ptr -> IO (Ptr ) {- typedef enum { GIT_REMOTE_DOWNLOAD_TAGS_UNSET, GIT_REMOTE_DOWNLOAD_TAGS_NONE, GIT_REMOTE_DOWNLOAD_TAGS_AUTO, GIT_REMOTE_DOWNLOAD_TAGS_ALL } git_remote_autotag_option_t; -} #integral_t git_remote_autotag_option_t #num GIT_REMOTE_DOWNLOAD_TAGS_UNSET #num GIT_REMOTE_DOWNLOAD_TAGS_NONE #num GIT_REMOTE_DOWNLOAD_TAGS_AUTO #num GIT_REMOTE_DOWNLOAD_TAGS_ALL #ccall git_remote_autotag , Ptr -> IO () #ccall git_remote_set_autotag , Ptr -> -> IO () #ccall git_remote_rename , Ptr -> CString -> -> Ptr () -> IO (CInt) #ccall git_remote_update_fetchhead , Ptr -> IO (CInt) #ccall git_remote_set_update_fetchhead , Ptr -> CInt -> IO () #ccall git_remote_is_valid_name , CString -> IO (CInt)