#include #include module Bindings.Libgit2.Oid where #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types #num GIT_OID_RAWSZ #num GIT_OID_HEXSZ #num GIT_OID_MINPREFIXLEN {- struct _git_oid { unsigned char id[20]; }; -} #starttype git_oid #array_field id , CUChar #stoptype #ccall git_oid_fromstr , 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 () #ccall git_oid_cmp , Ptr -> Ptr -> IO (CInt) #ccall git_oid_ncmp , Ptr -> Ptr -> CUInt -> 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 ()