#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 #opaque_t git_oid_shorten {- typedef struct { unsigned char id[GIT_OID_RAWSZ]; } git_oid; -} #starttype git_oid #array_field id , Word8 #stoptype #ccall git_oid_mkstr , Ptr -> CString -> IO (CInt) #ccall git_oid_mkraw , Ptr -> Ptr Word8 -> 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_to_string , CString -> CSize -> Ptr -> IO (CString) #ccall git_oid_cpy , Ptr -> Ptr -> IO () #ccall git_oid_cmp , Ptr -> Ptr -> IO (CInt)