{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include module Bindings.Libgit2.Oid where import Foreign.Ptr #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types {- typedef struct git_oid { unsigned char id[20]; } git_oid; -} #starttype git_oid #array_field id , CUChar #stoptype #ccall git_oid_fromstr , Ptr -> CString -> IO (CInt) #ccall git_oid_fromstrp , Ptr -> CString -> IO (CInt) #ccall git_oid_fromstrn , Ptr -> CString -> CSize -> IO (CInt) #ccall git_oid_fromraw , Ptr -> Ptr CUChar -> IO () #ccall git_oid_fmt , CString -> Ptr -> IO () #ccall git_oid_pathfmt , CString -> Ptr -> IO () #ccall git_oid_allocfmt , Ptr -> IO (CString) #ccall git_oid_tostr , CString -> CSize -> Ptr -> IO (CString) #ccall git_oid_cpy , Ptr -> Ptr -> IO () #cinline git_oid_cmp , Ptr -> Ptr -> IO (CInt) #cinline git_oid_equal , Ptr -> Ptr -> IO (CInt) #ccall git_oid_ncmp , Ptr -> Ptr -> CSize -> IO (CInt) #ccall git_oid_streq , Ptr -> CString -> IO (CInt) #ccall git_oid_iszero , Ptr -> IO (CInt) {- typedef struct git_oid_shorten git_oid_shorten; -} #opaque_t git_oid_shorten #ccall git_oid_shorten_new , CSize -> IO (Ptr ) #ccall git_oid_shorten_add , Ptr -> CString -> IO (CInt) #ccall git_oid_shorten_free , Ptr -> IO ()