packages feed

bindings-libzip 0.10.2 → 0.11

raw patch · 3 files changed

+74/−29 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

- Bindings.LibZip: c'zip_get_file_extra :: Ptr C'zip -> CULLong -> Ptr CInt -> CInt -> IO (CString)
- Bindings.LibZip: c'zip_set_file_extra :: Ptr C'zip -> CULLong -> CString -> CInt -> IO (CInt)
- Bindings.LibZip: p'zip_get_file_extra :: FunPtr (Ptr C'zip -> CULLong -> Ptr CInt -> CInt -> IO (CString))
- Bindings.LibZip: p'zip_set_file_extra :: FunPtr (Ptr C'zip -> CULLong -> CString -> CInt -> IO (CInt))
+ Bindings.LibZip: c'ZIP_CODEC_DECODE :: Num a => a
+ Bindings.LibZip: c'ZIP_EXTRA_FIELD_ALL :: Num a => a
+ Bindings.LibZip: c'ZIP_EXTRA_FIELD_NEW :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_CENTRAL :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_ENC_CP437 :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_ENC_GUESS :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_ENC_RAW :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_ENC_STRICT :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_ENC_UTF_8 :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_LOCAL :: Num a => a
+ Bindings.LibZip: c'ZIP_FL_OVERWRITE :: Num a => a
+ Bindings.LibZip: c'ZIP_TRUNCATE :: Num a => a
+ Bindings.LibZip: c'zip_archive_set_tempdir :: Ptr C'zip -> CString -> IO (CInt)
+ Bindings.LibZip: c'zip_dir_add :: Ptr C'zip -> CString -> C'zip_flags_t -> IO (CLLong)
+ Bindings.LibZip: c'zip_discard :: Ptr C'zip -> IO ()
+ Bindings.LibZip: c'zip_file_add :: Ptr C'zip -> CString -> Ptr C'zip_source -> C'zip_flags_t -> IO (CLLong)
+ Bindings.LibZip: c'zip_file_extra_field_delete :: Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_file_extra_field_delete_by_id :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_file_extra_field_get :: Ptr C'zip -> CULLong -> CUShort -> Ptr CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar)
+ Bindings.LibZip: c'zip_file_extra_field_get_by_id :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar)
+ Bindings.LibZip: c'zip_file_extra_field_set :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUChar -> CUShort -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_file_extra_fields_count :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (CShort)
+ Bindings.LibZip: c'zip_file_extra_fields_count_by_id :: Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO (CShort)
+ Bindings.LibZip: c'zip_file_get_comment :: Ptr C'zip -> CULLong -> Ptr CUInt -> C'zip_flags_t -> IO (CString)
+ Bindings.LibZip: c'zip_file_rename :: Ptr C'zip -> CULLong -> CString -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_file_replace :: Ptr C'zip -> CULLong -> Ptr C'zip_source -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_file_set_comment :: Ptr C'zip -> CULLong -> CString -> CUShort -> C'zip_flags_t -> IO (CInt)
+ Bindings.LibZip: c'zip_set_file_compression :: Ptr C'zip -> CULLong -> CInt -> CUInt -> IO (CInt)
+ Bindings.LibZip: p'zip_archive_set_tempdir :: FunPtr (Ptr C'zip -> CString -> IO (CInt))
+ Bindings.LibZip: p'zip_dir_add :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO (CLLong))
+ Bindings.LibZip: p'zip_discard :: FunPtr (Ptr C'zip -> IO ())
+ Bindings.LibZip: p'zip_file_add :: FunPtr (Ptr C'zip -> CString -> Ptr C'zip_source -> C'zip_flags_t -> IO (CLLong))
+ Bindings.LibZip: p'zip_file_extra_field_delete :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_file_extra_field_delete_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_file_extra_field_get :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> Ptr CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar))
+ Bindings.LibZip: p'zip_file_extra_field_get_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar))
+ Bindings.LibZip: p'zip_file_extra_field_set :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUChar -> CUShort -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_file_extra_fields_count :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (CShort))
+ Bindings.LibZip: p'zip_file_extra_fields_count_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO (CShort))
+ Bindings.LibZip: p'zip_file_get_comment :: FunPtr (Ptr C'zip -> CULLong -> Ptr CUInt -> C'zip_flags_t -> IO (CString))
+ Bindings.LibZip: p'zip_file_rename :: FunPtr (Ptr C'zip -> CULLong -> CString -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_file_replace :: FunPtr (Ptr C'zip -> CULLong -> Ptr C'zip_source -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_file_set_comment :: FunPtr (Ptr C'zip -> CULLong -> CString -> CUShort -> C'zip_flags_t -> IO (CInt))
+ Bindings.LibZip: p'zip_set_file_compression :: FunPtr (Ptr C'zip -> CULLong -> CInt -> CUInt -> IO (CInt))
+ Bindings.LibZip: type C'zip_flags_t = CUInt
- Bindings.LibZip: c'zip_fopen :: Ptr C'zip -> CString -> CInt -> IO (Ptr C'zip_file)
+ Bindings.LibZip: c'zip_fopen :: Ptr C'zip -> CString -> C'zip_flags_t -> IO (Ptr C'zip_file)
- Bindings.LibZip: c'zip_fopen_encrypted :: Ptr C'zip -> CString -> CInt -> CString -> IO (Ptr C'zip_file)
+ Bindings.LibZip: c'zip_fopen_encrypted :: Ptr C'zip -> CString -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file)
- Bindings.LibZip: c'zip_fopen_index :: Ptr C'zip -> CULLong -> CInt -> IO (Ptr C'zip_file)
+ Bindings.LibZip: c'zip_fopen_index :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (Ptr C'zip_file)
- Bindings.LibZip: c'zip_fopen_index_encrypted :: Ptr C'zip -> CULLong -> CInt -> CString -> IO (Ptr C'zip_file)
+ Bindings.LibZip: c'zip_fopen_index_encrypted :: Ptr C'zip -> CULLong -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file)
- Bindings.LibZip: c'zip_get_archive_comment :: Ptr C'zip -> Ptr CInt -> CInt -> IO (CString)
+ Bindings.LibZip: c'zip_get_archive_comment :: Ptr C'zip -> Ptr CInt -> C'zip_flags_t -> IO (CString)
- Bindings.LibZip: c'zip_get_archive_flag :: Ptr C'zip -> CInt -> CInt -> IO (CInt)
+ Bindings.LibZip: c'zip_get_archive_flag :: Ptr C'zip -> C'zip_flags_t -> C'zip_flags_t -> IO (CInt)
- Bindings.LibZip: c'zip_get_name :: Ptr C'zip -> CULLong -> CInt -> IO (CString)
+ Bindings.LibZip: c'zip_get_name :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (CString)
- Bindings.LibZip: c'zip_get_num_entries :: Ptr C'zip -> CInt -> IO (CULLong)
+ Bindings.LibZip: c'zip_get_num_entries :: Ptr C'zip -> C'zip_flags_t -> IO (CLLong)
- Bindings.LibZip: c'zip_name_locate :: Ptr C'zip -> CString -> CInt -> IO (CInt)
+ Bindings.LibZip: c'zip_name_locate :: Ptr C'zip -> CString -> C'zip_flags_t -> IO (CLLong)
- Bindings.LibZip: c'zip_set_archive_comment :: Ptr C'zip -> CString -> CInt -> IO (CInt)
+ Bindings.LibZip: c'zip_set_archive_comment :: Ptr C'zip -> CString -> CUShort -> IO (CInt)
- Bindings.LibZip: c'zip_set_archive_flag :: Ptr C'zip -> CInt -> CInt -> IO (CInt)
+ Bindings.LibZip: c'zip_set_archive_flag :: Ptr C'zip -> C'zip_flags_t -> CInt -> IO (CInt)
- Bindings.LibZip: c'zip_source_zip :: Ptr C'zip -> Ptr C'zip -> CULLong -> CInt -> CULLong -> CLLong -> IO (Ptr C'zip_source)
+ Bindings.LibZip: c'zip_source_zip :: Ptr C'zip -> Ptr C'zip -> CULLong -> C'zip_flags_t -> CULLong -> CLLong -> IO (Ptr C'zip_source)
- Bindings.LibZip: c'zip_stat :: Ptr C'zip -> CString -> CInt -> Ptr C'zip_stat -> IO (CInt)
+ Bindings.LibZip: c'zip_stat :: Ptr C'zip -> CString -> C'zip_flags_t -> Ptr C'zip_stat -> IO (CInt)
- Bindings.LibZip: c'zip_stat_index :: Ptr C'zip -> CULLong -> CInt -> Ptr C'zip_stat -> IO (CInt)
+ Bindings.LibZip: c'zip_stat_index :: Ptr C'zip -> CULLong -> C'zip_flags_t -> Ptr C'zip_stat -> IO (CInt)
- Bindings.LibZip: p'zip_fopen :: FunPtr (Ptr C'zip -> CString -> CInt -> IO (Ptr C'zip_file))
+ Bindings.LibZip: p'zip_fopen :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO (Ptr C'zip_file))
- Bindings.LibZip: p'zip_fopen_encrypted :: FunPtr (Ptr C'zip -> CString -> CInt -> CString -> IO (Ptr C'zip_file))
+ Bindings.LibZip: p'zip_fopen_encrypted :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file))
- Bindings.LibZip: p'zip_fopen_index :: FunPtr (Ptr C'zip -> CULLong -> CInt -> IO (Ptr C'zip_file))
+ Bindings.LibZip: p'zip_fopen_index :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (Ptr C'zip_file))
- Bindings.LibZip: p'zip_fopen_index_encrypted :: FunPtr (Ptr C'zip -> CULLong -> CInt -> CString -> IO (Ptr C'zip_file))
+ Bindings.LibZip: p'zip_fopen_index_encrypted :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file))
- Bindings.LibZip: p'zip_get_archive_comment :: FunPtr (Ptr C'zip -> Ptr CInt -> CInt -> IO (CString))
+ Bindings.LibZip: p'zip_get_archive_comment :: FunPtr (Ptr C'zip -> Ptr CInt -> C'zip_flags_t -> IO (CString))
- Bindings.LibZip: p'zip_get_archive_flag :: FunPtr (Ptr C'zip -> CInt -> CInt -> IO (CInt))
+ Bindings.LibZip: p'zip_get_archive_flag :: FunPtr (Ptr C'zip -> C'zip_flags_t -> C'zip_flags_t -> IO (CInt))
- Bindings.LibZip: p'zip_get_name :: FunPtr (Ptr C'zip -> CULLong -> CInt -> IO (CString))
+ Bindings.LibZip: p'zip_get_name :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (CString))
- Bindings.LibZip: p'zip_get_num_entries :: FunPtr (Ptr C'zip -> CInt -> IO (CULLong))
+ Bindings.LibZip: p'zip_get_num_entries :: FunPtr (Ptr C'zip -> C'zip_flags_t -> IO (CLLong))
- Bindings.LibZip: p'zip_name_locate :: FunPtr (Ptr C'zip -> CString -> CInt -> IO (CInt))
+ Bindings.LibZip: p'zip_name_locate :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO (CLLong))
- Bindings.LibZip: p'zip_set_archive_comment :: FunPtr (Ptr C'zip -> CString -> CInt -> IO (CInt))
+ Bindings.LibZip: p'zip_set_archive_comment :: FunPtr (Ptr C'zip -> CString -> CUShort -> IO (CInt))
- Bindings.LibZip: p'zip_set_archive_flag :: FunPtr (Ptr C'zip -> CInt -> CInt -> IO (CInt))
+ Bindings.LibZip: p'zip_set_archive_flag :: FunPtr (Ptr C'zip -> C'zip_flags_t -> CInt -> IO (CInt))
- Bindings.LibZip: p'zip_source_zip :: FunPtr (Ptr C'zip -> Ptr C'zip -> CULLong -> CInt -> CULLong -> CLLong -> IO (Ptr C'zip_source))
+ Bindings.LibZip: p'zip_source_zip :: FunPtr (Ptr C'zip -> Ptr C'zip -> CULLong -> C'zip_flags_t -> CULLong -> CLLong -> IO (Ptr C'zip_source))
- Bindings.LibZip: p'zip_stat :: FunPtr (Ptr C'zip -> CString -> CInt -> Ptr C'zip_stat -> IO (CInt))
+ Bindings.LibZip: p'zip_stat :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> Ptr C'zip_stat -> IO (CInt))
- Bindings.LibZip: p'zip_stat_index :: FunPtr (Ptr C'zip -> CULLong -> CInt -> Ptr C'zip_stat -> IO (CInt))
+ Bindings.LibZip: p'zip_stat_index :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> Ptr C'zip_stat -> IO (CInt))

Files

Bindings/LibZip.hsc view
@@ -2,7 +2,7 @@ #include <zip.h>  -- | This module provides automatic low-level bindings to @libzip@--- library, version 0.10. See also:+-- library, version 0.11. See also: -- --   * @libzip@ documention: <http://nih.at/libzip/libzip.html> and @zip.h@ --@@ -21,12 +21,14 @@ #opaque_t zip #opaque_t zip_file #opaque_t zip_source+#integral_t zip_flags_t  -- flags for zip_open  #num ZIP_CREATE #num ZIP_EXCL #num ZIP_CHECKCONS+#num ZIP_TRUNCATE  -- flags for zip_name_locate, zip_fopen, zip_stat, ... @@ -36,14 +38,29 @@ #num ZIP_FL_UNCHANGED #num ZIP_FL_RECOMPRESS #num ZIP_FL_ENCRYPTED+#num ZIP_FL_ENC_GUESS+#num ZIP_FL_ENC_RAW+#num ZIP_FL_ENC_STRICT+#num ZIP_FL_LOCAL+#num ZIP_FL_CENTRAL+#num ZIP_FL_ENC_UTF_8+#num ZIP_FL_ENC_CP437+#num ZIP_FL_OVERWRITE + -- archive global flags flags  #num ZIP_AFL_TORRENT #num ZIP_AFL_RDONLY +-- new extra field++#num ZIP_EXTRA_FIELD_ALL+#num ZIP_EXTRA_FIELD_NEW+ -- flags for compression and encryption sources +#num ZIP_CODEC_DECODE #num ZIP_CODEC_ENCODE  -- libzip error codes@@ -117,6 +134,8 @@ #num ZIP_SOURCE_ERROR #num ZIP_SOURCE_FREE ++ -- typedef zip_int64_t (*zip_source_callback)(void *, void *, zip_uint64_t, enum zip_source_cmd); #callback zip_source_callback , Ptr () -> Ptr () -> CULLong -> <zip_source_cmd> -> IO CULLong @@ -161,22 +180,46 @@  -- make every declaration one-line, and replace --    ZIP_EXTERN ->+--    \/\*.*$ -> --    const char * -> CString --    char * -> Ptr CChar---    struct foo * -> Ptr <foo>  -- with regexps+--    struct foo * -> Ptr <foo>+--    (with regexp: struct \([a-z0-9_]*\) \* -> Ptr <\1> ) --    FILE -> CFile --    int -> CInt+--    zip_uint8_t -> CUChar+--    zip_int16_t -> CShort+--    zip_uint16_t -> CUShort+--    zip_int32_t -> CInt+--    zip_uint32_t -> CUInt --    zip_int64_t -> CLLong --    zip_uint64_t -> CULLong --    void -> ()+--    const -> --    zip_source_callback -> <zip_source_callback> --    foo * -> Ptr foo   -- with regexps --    regexp-replace "\(.*\)\(zip_[a-z0-9_]+\)(\(.*\));" "#ccall \2 , \3 -> IO (\1)" +-- deprecated API+ #ccall zip_add , Ptr <zip> -> CString -> Ptr <zip_source> -> IO (CLLong) #ccall zip_add_dir , Ptr <zip> -> CString -> IO (CLLong)+#ccall zip_get_file_comment , Ptr <zip> -> CULLong -> Ptr CInt -> CInt -> IO (CString)+#ccall zip_get_num_files , Ptr <zip> -> IO (CInt)+#ccall zip_rename , Ptr <zip> -> CULLong -> CString -> IO (CInt)+#ccall zip_replace , Ptr <zip> -> CULLong -> Ptr <zip_source> -> IO (CInt)+#ccall zip_set_file_comment , Ptr <zip> -> CULLong -> CString -> CInt -> IO (CInt)++-- the rest of the API++#ccall zip_archive_set_tempdir , Ptr <zip> -> CString -> IO (CInt)+#ccall zip_file_add , Ptr <zip> -> CString -> Ptr <zip_source> -> <zip_flags_t> -> IO (CLLong)+#ccall zip_dir_add , Ptr <zip> -> CString -> <zip_flags_t> -> IO (CLLong) #ccall zip_close , Ptr <zip> -> IO (CInt)+#ccall zip_discard , Ptr <zip> -> IO () #ccall zip_delete , Ptr <zip> -> CULLong -> IO (CInt)+#ccall zip_file_extra_field_delete , Ptr <zip> -> CULLong -> CUShort -> <zip_flags_t> -> IO (CInt)+#ccall zip_file_extra_field_delete_by_id , Ptr <zip> -> CULLong -> CUShort -> CUShort -> <zip_flags_t> -> IO (CInt) #ccall zip_error_clear , Ptr <zip> -> IO () #ccall zip_error_get , Ptr <zip> -> Ptr CInt -> Ptr CInt -> IO () #ccall zip_error_get_sys_type , CInt -> IO (CInt)@@ -186,35 +229,38 @@ #ccall zip_file_error_clear , Ptr <zip_file> -> IO () #ccall zip_file_error_get , Ptr <zip_file> -> Ptr CInt -> Ptr CInt -> IO () #ccall zip_file_strerror , Ptr <zip_file> -> IO (CString)-#ccall zip_fopen , Ptr <zip> -> CString -> CInt -> IO (Ptr <zip_file>)-#ccall zip_fopen_encrypted , Ptr <zip> -> CString -> CInt -> CString -> IO (Ptr <zip_file>)-#ccall zip_fopen_index , Ptr <zip> -> CULLong -> CInt -> IO (Ptr <zip_file>)-#ccall zip_fopen_index_encrypted , Ptr <zip> -> CULLong -> CInt -> CString -> IO (Ptr <zip_file>)+#ccall zip_fopen , Ptr <zip> -> CString -> <zip_flags_t> -> IO (Ptr <zip_file>)+#ccall zip_fopen_encrypted , Ptr <zip> -> CString -> <zip_flags_t> -> CString -> IO (Ptr <zip_file>)+#ccall zip_fopen_index , Ptr <zip> -> CULLong -> <zip_flags_t> -> IO (Ptr <zip_file>)+#ccall zip_fopen_index_encrypted , Ptr <zip> -> CULLong -> <zip_flags_t> -> CString -> IO (Ptr <zip_file>) #ccall zip_fread , Ptr <zip_file> -> Ptr () -> CULLong -> IO (CLLong)-#ccall zip_get_archive_comment , Ptr <zip> -> Ptr CInt -> CInt -> IO (CString)-#ccall zip_get_archive_flag , Ptr <zip> -> CInt -> CInt -> IO (CInt)-#ccall zip_get_file_comment , Ptr <zip> -> CULLong -> Ptr CInt -> CInt -> IO (CString)-#ccall zip_get_file_extra , Ptr <zip> -> CULLong -> Ptr CInt -> CInt -> IO (CString)-#ccall zip_get_name , Ptr <zip> -> CULLong -> CInt -> IO (CString)-#ccall zip_get_num_entries , Ptr <zip> -> CInt -> IO (CULLong)-#ccall zip_get_num_files , Ptr <zip> -> IO (CInt)-#ccall zip_name_locate , Ptr <zip> -> CString -> CInt -> IO (CInt)+#ccall zip_get_archive_comment , Ptr <zip> -> Ptr CInt -> <zip_flags_t> -> IO (CString)+#ccall zip_get_archive_flag , Ptr <zip> -> <zip_flags_t> -> <zip_flags_t> -> IO (CInt)+#ccall zip_file_get_comment , Ptr <zip> -> CULLong -> Ptr CUInt -> <zip_flags_t> -> IO (CString)+#ccall zip_file_extra_field_get , Ptr <zip> -> CULLong -> CUShort -> Ptr CUShort -> Ptr CUShort -> <zip_flags_t> -> IO (Ptr CUChar)+#ccall zip_file_extra_field_get_by_id , Ptr <zip> -> CULLong -> CUShort -> CUShort -> Ptr CUShort -> <zip_flags_t> -> IO (Ptr CUChar)+#ccall zip_file_extra_fields_count , Ptr <zip> -> CULLong -> <zip_flags_t> -> IO (CShort)+#ccall zip_file_extra_fields_count_by_id , Ptr <zip> -> CULLong -> CUShort -> <zip_flags_t> -> IO (CShort)+#ccall zip_get_name , Ptr <zip> -> CULLong -> <zip_flags_t> -> IO (CString)+#ccall zip_get_num_entries , Ptr <zip> -> <zip_flags_t> -> IO (CLLong)+#ccall zip_name_locate , Ptr <zip> -> CString -> <zip_flags_t> -> IO (CLLong) #ccall zip_open , CString -> CInt -> Ptr CInt -> IO (Ptr <zip>)-#ccall zip_rename , Ptr <zip> -> CULLong -> CString -> IO (CInt)-#ccall zip_replace , Ptr <zip> -> CULLong -> Ptr <zip_source> -> IO (CInt)-#ccall zip_set_archive_comment , Ptr <zip> -> CString -> CInt -> IO (CInt)-#ccall zip_set_archive_flag , Ptr <zip> -> CInt -> CInt -> IO (CInt)+#ccall zip_file_rename , Ptr <zip> -> CULLong -> CString -> <zip_flags_t> -> IO (CInt)+#ccall zip_file_replace , Ptr <zip> -> CULLong -> Ptr <zip_source> -> <zip_flags_t> -> IO (CInt)+#ccall zip_set_archive_comment , Ptr <zip> -> CString -> CUShort -> IO (CInt)+#ccall zip_set_archive_flag , Ptr <zip> -> <zip_flags_t> -> CInt -> IO (CInt) #ccall zip_set_default_password , Ptr <zip> -> CString -> IO (CInt)-#ccall zip_set_file_comment , Ptr <zip> -> CULLong -> CString -> CInt -> IO (CInt)-#ccall zip_set_file_extra , Ptr <zip> -> CULLong -> CString -> CInt -> IO (CInt)+#ccall zip_file_set_comment , Ptr <zip> -> CULLong -> CString -> CUShort -> <zip_flags_t> -> IO (CInt)+#ccall zip_set_file_compression , Ptr <zip> -> CULLong -> CInt -> CUInt -> IO (CInt)+#ccall zip_file_extra_field_set , Ptr <zip> -> CULLong -> CUShort -> CUShort -> Ptr CUChar -> CUShort -> <zip_flags_t> -> IO (CInt) #ccall zip_source_buffer , Ptr <zip> -> Ptr () -> CULLong -> CInt -> IO (Ptr <zip_source>) #ccall zip_source_file , Ptr <zip> -> CString -> CULLong -> CLLong -> IO (Ptr <zip_source>) #ccall zip_source_filep , Ptr <zip> -> Ptr CFile -> CULLong -> CLLong -> IO (Ptr <zip_source>) #ccall zip_source_free , Ptr <zip_source> -> IO () #ccall zip_source_function , Ptr <zip> -> <zip_source_callback> -> Ptr () -> IO (Ptr <zip_source>)-#ccall zip_source_zip , Ptr <zip> -> Ptr <zip> -> CULLong -> CInt -> CULLong -> CLLong -> IO (Ptr <zip_source>)-#ccall zip_stat , Ptr <zip> -> CString -> CInt -> Ptr <zip_stat> -> IO (CInt)-#ccall zip_stat_index , Ptr <zip> -> CULLong -> CInt -> Ptr <zip_stat> -> IO (CInt)+#ccall zip_source_zip , Ptr <zip> -> Ptr <zip> -> CULLong -> <zip_flags_t> -> CULLong -> CLLong -> IO (Ptr <zip_source>)+#ccall zip_stat , Ptr <zip> -> CString -> <zip_flags_t> -> Ptr <zip_stat> -> IO (CInt)+#ccall zip_stat_index , Ptr <zip> -> CULLong -> <zip_flags_t> -> Ptr <zip_stat> -> IO (CInt) #ccall zip_stat_init , Ptr <zip_stat> -> IO () #ccall zip_strerror , Ptr <zip> -> IO (CString) #ccall zip_unchange , Ptr <zip> -> CULLong -> IO (CInt)
LICENSE view
@@ -1,4 +1,4 @@-Copyright Sergey Astanin 2010+Copyright Sergey Astanin 2010-2013  All rights reserved. 
bindings-libzip.cabal view
@@ -1,8 +1,8 @@ Name:                bindings-libzip-Version:             0.10.2+Version:             0.11 Synopsis:            Low level bindings to libzip. Description:-  This package provides low-level bindings to libzip (v0.10) library.+  This package provides low-level bindings to libzip (v0.11) library.   For higher-level interface please use LibZip package:   <http://hackage.haskell.org/package/LibZip> @@ -16,7 +16,6 @@ Build-type:          Simple  Cabal-version:       >=1.2.3-Tested-with:         GHC == 7.4.1, GHC == 7.6.1  Flag NoPkgConfig   Description: Do not use pkg-config to check for library dependencies.@@ -30,14 +29,14 @@         Bindings.LibZip    Build-Depends:-        base >= 4.0 && < 5+        base >= 4.0 && < 5.0       , bindings-DSL >= 1.0 && < 1.1    if flag(NoPkgConfig)     Includes: zip.h     Extra-Libraries: zip z   else-    PkgConfig-Depends: libzip == 0.10.*+    PkgConfig-Depends: libzip == 0.11.*    GHC-Options:         -Wall -fno-warn-unused-imports