Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Bindings.LibZip
Description
This module provides automatic low-level bindings to libzip
library, version 1.0. See also:
libzip
documention: http://nih.at/libzip/libzip.html andzip.h
bindings-DSL
documentation: https://github.com/jwiegley/bindings-dsl
Higher-level interface is provided by a separate LibZip package:
Note: this is the first version to support libzip 1.0 and it lacks support for some of the new libzip functions. Contributions are welcome.
Documentation
type C'zip_flags_t = CUInt #
c'ZIP_CREATE :: Num a => a #
c'ZIP_EXCL :: Num a => a #
c'ZIP_CHECKCONS :: Num a => a #
c'ZIP_TRUNCATE :: Num a => a #
c'ZIP_RDONLY :: Num a => a #
c'ZIP_FL_NOCASE :: Num a => a #
c'ZIP_FL_NODIR :: Num a => a #
c'ZIP_FL_COMPRESSED :: Num a => a #
c'ZIP_FL_UNCHANGED :: Num a => a #
c'ZIP_FL_RECOMPRESS :: Num a => a #
c'ZIP_FL_ENCRYPTED :: Num a => a #
c'ZIP_FL_ENC_GUESS :: Num a => a #
c'ZIP_FL_ENC_RAW :: Num a => a #
c'ZIP_FL_ENC_STRICT :: Num a => a #
c'ZIP_FL_LOCAL :: Num a => a #
c'ZIP_FL_CENTRAL :: Num a => a #
c'ZIP_FL_ENC_UTF_8 :: Num a => a #
c'ZIP_FL_ENC_CP437 :: Num a => a #
c'ZIP_FL_OVERWRITE :: Num a => a #
c'ZIP_AFL_RDONLY :: Num a => a #
c'ZIP_EXTRA_FIELD_ALL :: Num a => a #
c'ZIP_EXTRA_FIELD_NEW :: Num a => a #
c'ZIP_ER_OK :: Num a => a #
c'ZIP_ER_MULTIDISK :: Num a => a #
c'ZIP_ER_RENAME :: Num a => a #
c'ZIP_ER_CLOSE :: Num a => a #
c'ZIP_ER_SEEK :: Num a => a #
c'ZIP_ER_READ :: Num a => a #
c'ZIP_ER_WRITE :: Num a => a #
c'ZIP_ER_CRC :: Num a => a #
c'ZIP_ER_ZIPCLOSED :: Num a => a #
c'ZIP_ER_NOENT :: Num a => a #
c'ZIP_ER_EXISTS :: Num a => a #
c'ZIP_ER_OPEN :: Num a => a #
c'ZIP_ER_TMPOPEN :: Num a => a #
c'ZIP_ER_ZLIB :: Num a => a #
c'ZIP_ER_MEMORY :: Num a => a #
c'ZIP_ER_CHANGED :: Num a => a #
c'ZIP_ER_COMPNOTSUPP :: Num a => a #
c'ZIP_ER_EOF :: Num a => a #
c'ZIP_ER_INVAL :: Num a => a #
c'ZIP_ER_NOZIP :: Num a => a #
c'ZIP_ER_INTERNAL :: Num a => a #
c'ZIP_ER_INCONS :: Num a => a #
c'ZIP_ER_REMOVE :: Num a => a #
c'ZIP_ER_DELETED :: Num a => a #
c'ZIP_ER_ENCRNOTSUPP :: Num a => a #
c'ZIP_ER_RDONLY :: Num a => a #
c'ZIP_ER_NOPASSWD :: Num a => a #
c'ZIP_ER_WRONGPASSWD :: Num a => a #
c'ZIP_ER_OPNOTSUPP :: Num a => a #
c'ZIP_ER_INUSE :: Num a => a #
c'ZIP_ER_TELL :: Num a => a #
c'ZIP_ET_NONE :: Num a => a #
c'ZIP_ET_SYS :: Num a => a #
c'ZIP_ET_ZLIB :: Num a => a #
c'ZIP_CM_DEFAULT :: Num a => a #
c'ZIP_CM_STORE :: Num a => a #
c'ZIP_CM_SHRINK :: Num a => a #
c'ZIP_CM_REDUCE_1 :: Num a => a #
c'ZIP_CM_REDUCE_2 :: Num a => a #
c'ZIP_CM_REDUCE_3 :: Num a => a #
c'ZIP_CM_REDUCE_4 :: Num a => a #
c'ZIP_CM_IMPLODE :: Num a => a #
c'ZIP_CM_DEFLATE :: Num a => a #
c'ZIP_CM_DEFLATE64 :: Num a => a #
c'ZIP_CM_PKWARE_IMPLODE :: Num a => a #
c'ZIP_CM_BZIP2 :: Num a => a #
c'ZIP_CM_LZMA :: Num a => a #
c'ZIP_CM_TERSE :: Num a => a #
c'ZIP_CM_LZ77 :: Num a => a #
c'ZIP_CM_WAVPACK :: Num a => a #
c'ZIP_CM_PPMD :: Num a => a #
c'ZIP_EM_NONE :: Num a => a #
c'ZIP_EM_TRAD_PKWARE :: Num a => a #
c'ZIP_EM_UNKNOWN :: Num a => a #
c'ZIP_OPSYS_DOS :: Num a => a #
c'ZIP_OPSYS_AMIGA :: Num a => a #
c'ZIP_OPSYS_OPENVMS :: Num a => a #
c'ZIP_OPSYS_UNIX :: Num a => a #
c'ZIP_OPSYS_VM_CMS :: Num a => a #
c'ZIP_OPSYS_ATARI_ST :: Num a => a #
c'ZIP_OPSYS_OS_2 :: Num a => a #
c'ZIP_OPSYS_MACINTOSH :: Num a => a #
c'ZIP_OPSYS_Z_SYSTEM :: Num a => a #
c'ZIP_OPSYS_CPM :: Num a => a #
c'ZIP_OPSYS_WINDOWS_NTFS :: Num a => a #
c'ZIP_OPSYS_MVS :: Num a => a #
c'ZIP_OPSYS_VSE :: Num a => a #
c'ZIP_OPSYS_ACORN_RISC :: Num a => a #
c'ZIP_OPSYS_VFAT :: Num a => a #
c'ZIP_OPSYS_ALTERNATE_MVS :: Num a => a #
c'ZIP_OPSYS_BEOS :: Num a => a #
c'ZIP_OPSYS_TANDEM :: Num a => a #
c'ZIP_OPSYS_OS_400 :: Num a => a #
c'ZIP_OPSYS_OS_X :: Num a => a #
type C'zip_source_cmd = CUInt #
type C'zip_source_cmd_t = C'zip_source_cmd #
c'ZIP_SOURCE_OPEN :: Num a => a #
c'ZIP_SOURCE_READ :: Num a => a #
c'ZIP_SOURCE_CLOSE :: Num a => a #
c'ZIP_SOURCE_STAT :: Num a => a #
c'ZIP_SOURCE_ERROR :: Num a => a #
c'ZIP_SOURCE_FREE :: Num a => a #
c'ZIP_SOURCE_SEEK :: Num a => a #
c'ZIP_SOURCE_TELL :: Num a => a #
c'ZIP_SOURCE_BEGIN_WRITE :: Num a => a #
c'ZIP_SOURCE_COMMIT_WRITE :: Num a => a #
c'ZIP_SOURCE_ROLLBACK_WRITE :: Num a => a #
c'ZIP_SOURCE_WRITE :: Num a => a #
c'ZIP_SOURCE_SEEK_WRITE :: Num a => a #
c'ZIP_SOURCE_TELL_WRITE :: Num a => a #
c'ZIP_SOURCE_SUPPORTS :: Num a => a #
c'ZIP_SOURCE_REMOVE :: Num a => a #
c'ZIP_SOURCE_SUPPORTS_READABLE :: Num a => a #
c'ZIP_SOURCE_SUPPORTS_SEEKABLE :: Num a => a #
c'ZIP_SOURCE_SUPPORTS_WRITABLE :: Num a => a #
data C'zip_source_args_seek #
Constructors
C'zip_source_args_seek | |
type C'zip_source_callback = FunPtr (Ptr () -> Ptr () -> CULLong -> C'zip_source_cmd -> IO CULLong) #
mk'zip_source_callback :: (Ptr () -> Ptr () -> CULLong -> C'zip_source_cmd -> IO CULLong) -> IO C'zip_source_callback #
mK'zip_source_callback :: C'zip_source_callback -> Ptr () -> Ptr () -> CULLong -> C'zip_source_cmd -> IO CULLong #
data C'zip_file #
Constructors
C'zip_file |
data C'zip_source #
Constructors
C'zip_source |
type C'zip_error_t = C'zip_error #
p'zip_error'zip_err :: Ptr C'zip_error -> Ptr CInt #
type C'zip_file_t = C'zip_file #
type C'zip_source_t = C'zip_source #
p'zip_error'sys_err :: Ptr C'zip_error -> Ptr CInt #
type C'zip_stat_t = C'zip_stat #
p'zip_error'str :: Ptr C'zip_error -> Ptr CString #
c'ZIP_STAT_NAME :: Num a => a #
c'ZIP_STAT_INDEX :: Num a => a #
c'ZIP_STAT_SIZE :: Num a => a #
c'ZIP_STAT_COMP_SIZE :: Num a => a #
c'ZIP_STAT_MTIME :: Num a => a #
c'ZIP_STAT_CRC :: Num a => a #
c'ZIP_STAT_COMP_METHOD :: Num a => a #
c'ZIP_STAT_ENCRYPTION_METHOD :: Num a => a #
c'ZIP_STAT_FLAGS :: Num a => a #
p'zip_stat'valid :: Ptr C'zip_stat -> Ptr CULLong #
p'zip_stat'name :: Ptr C'zip_stat -> Ptr (Ptr CChar) #
p'zip_stat'index :: Ptr C'zip_stat -> Ptr CULLong #
p'zip_stat'size :: Ptr C'zip_stat -> Ptr CULLong #
p'zip_stat'comp_size :: Ptr C'zip_stat -> Ptr CULLong #
p'zip_stat'mtime :: Ptr C'zip_stat -> Ptr CTime #
p'zip_stat'crc :: Ptr C'zip_stat -> Ptr CUInt #
p'zip_stat'flags :: Ptr C'zip_stat -> Ptr CUInt #
c'zip_replace :: Ptr C'zip -> CULLong -> Ptr C'zip_source -> IO CInt #
p'zip_replace :: FunPtr (Ptr C'zip -> CULLong -> Ptr C'zip_source -> IO CInt) #
c'zip_error_get_sys_type :: CInt -> IO CInt #
c'zip_file_error_get :: Ptr C'zip_file -> Ptr CInt -> Ptr CInt -> IO () #
p'zip_file_error_get :: FunPtr (Ptr C'zip_file -> Ptr CInt -> Ptr CInt -> IO ()) #
c'zip_file_add :: Ptr C'zip -> CString -> Ptr C'zip_source -> C'zip_flags_t -> IO CLLong #
c'zip_dir_add :: Ptr C'zip -> CString -> C'zip_flags_t -> IO CLLong #
p'zip_file_add :: FunPtr (Ptr C'zip -> CString -> Ptr C'zip_source -> C'zip_flags_t -> IO CLLong) #
c'zip_discard :: Ptr C'zip -> IO () #
p'zip_dir_add :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO CLLong) #
c'zip_file_extra_field_delete :: Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO CInt #
c'zip_file_extra_field_delete_by_id :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> C'zip_flags_t -> IO CInt #
c'zip_error_clear :: Ptr C'zip -> IO () #
p'zip_file_extra_field_delete :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO CInt) #
c'zip_fclose :: Ptr C'zip_file -> IO CInt #
p'zip_file_extra_field_delete_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> C'zip_flags_t -> IO CInt) #
c'zip_file_error_clear :: Ptr C'zip_file -> IO () #
p'zip_fclose :: FunPtr (Ptr C'zip_file -> IO CInt) #
c'zip_file_strerror :: Ptr C'zip_file -> IO CString #
p'zip_file_error_clear :: FunPtr (Ptr C'zip_file -> IO ()) #
c'zip_fopen :: Ptr C'zip -> CString -> C'zip_flags_t -> IO (Ptr C'zip_file) #
p'zip_file_strerror :: FunPtr (Ptr C'zip_file -> IO CString) #
c'zip_fopen_encrypted :: Ptr C'zip -> CString -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file) #
c'zip_fopen_index :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (Ptr C'zip_file) #
p'zip_fopen :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO (Ptr C'zip_file)) #
c'zip_fopen_index_encrypted :: Ptr C'zip -> CULLong -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file) #
p'zip_fopen_encrypted :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file)) #
c'zip_fread :: Ptr C'zip_file -> Ptr () -> CULLong -> IO CLLong #
p'zip_fopen_index :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO (Ptr C'zip_file)) #
c'zip_get_archive_comment :: Ptr C'zip -> Ptr CInt -> C'zip_flags_t -> IO CString #
p'zip_fopen_index_encrypted :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> CString -> IO (Ptr C'zip_file)) #
c'zip_get_archive_flag :: Ptr C'zip -> C'zip_flags_t -> C'zip_flags_t -> IO CInt #
p'zip_fread :: FunPtr (Ptr C'zip_file -> Ptr () -> CULLong -> IO CLLong) #
p'zip_get_archive_comment :: FunPtr (Ptr C'zip -> Ptr CInt -> C'zip_flags_t -> IO CString) #
c'zip_file_get_comment :: Ptr C'zip -> CULLong -> Ptr CUInt -> C'zip_flags_t -> IO CString #
p'zip_get_archive_flag :: FunPtr (Ptr C'zip -> C'zip_flags_t -> C'zip_flags_t -> IO CInt) #
c'zip_file_extra_field_get :: Ptr C'zip -> CULLong -> CUShort -> Ptr CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar) #
p'zip_file_get_comment :: FunPtr (Ptr C'zip -> CULLong -> Ptr CUInt -> C'zip_flags_t -> IO CString) #
c'zip_file_extra_field_get_by_id :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar) #
c'zip_file_extra_fields_count :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO CShort #
p'zip_file_extra_field_get :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> Ptr CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar)) #
c'zip_file_extra_fields_count_by_id :: Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO CShort #
p'zip_file_extra_field_get_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUShort -> C'zip_flags_t -> IO (Ptr CUChar)) #
c'zip_get_name :: Ptr C'zip -> CULLong -> C'zip_flags_t -> IO CString #
p'zip_file_extra_fields_count :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO CShort) #
c'zip_get_num_entries :: Ptr C'zip -> C'zip_flags_t -> IO CLLong #
p'zip_file_extra_fields_count_by_id :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> C'zip_flags_t -> IO CShort) #
c'zip_name_locate :: Ptr C'zip -> CString -> C'zip_flags_t -> IO CLLong #
p'zip_get_name :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> IO CString) #
p'zip_get_num_entries :: FunPtr (Ptr C'zip -> C'zip_flags_t -> IO CLLong) #
c'zip_file_rename :: Ptr C'zip -> CULLong -> CString -> C'zip_flags_t -> IO CInt #
p'zip_name_locate :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> IO CLLong) #
c'zip_file_replace :: Ptr C'zip -> CULLong -> Ptr C'zip_source -> C'zip_flags_t -> IO CInt #
p'zip_file_rename :: FunPtr (Ptr C'zip -> CULLong -> CString -> C'zip_flags_t -> IO CInt) #
c'zip_set_archive_flag :: Ptr C'zip -> C'zip_flags_t -> CInt -> IO CInt #
p'zip_file_replace :: FunPtr (Ptr C'zip -> CULLong -> Ptr C'zip_source -> C'zip_flags_t -> IO CInt) #
p'zip_set_archive_flag :: FunPtr (Ptr C'zip -> C'zip_flags_t -> CInt -> IO CInt) #
c'zip_file_set_comment :: Ptr C'zip -> CULLong -> CString -> CUShort -> C'zip_flags_t -> IO CInt #
p'zip_file_set_comment :: FunPtr (Ptr C'zip -> CULLong -> CString -> CUShort -> C'zip_flags_t -> IO CInt) #
c'zip_file_extra_field_set :: Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUChar -> CUShort -> C'zip_flags_t -> IO CInt #
c'zip_source_buffer :: Ptr C'zip -> Ptr () -> CULLong -> CInt -> IO (Ptr C'zip_source) #
c'zip_source_file :: Ptr C'zip -> CString -> CULLong -> CLLong -> IO (Ptr C'zip_source) #
p'zip_file_extra_field_set :: FunPtr (Ptr C'zip -> CULLong -> CUShort -> CUShort -> Ptr CUChar -> CUShort -> C'zip_flags_t -> IO CInt) #
c'zip_source_free :: Ptr C'zip_source -> IO () #
c'zip_source_function :: Ptr C'zip -> C'zip_source_callback -> Ptr () -> IO (Ptr C'zip_source) #
p'zip_source_filep :: FunPtr (Ptr C'zip -> Ptr CFile -> CULLong -> CLLong -> IO (Ptr C'zip_source)) #
p'zip_source_free :: FunPtr (Ptr C'zip_source -> IO ()) #
c'zip_source_zip :: Ptr C'zip -> Ptr C'zip -> CULLong -> C'zip_flags_t -> CULLong -> CLLong -> IO (Ptr C'zip_source) #
c'zip_stat :: Ptr C'zip -> CString -> C'zip_flags_t -> Ptr C'zip_stat -> IO CInt #
p'zip_source_function :: FunPtr (Ptr C'zip -> C'zip_source_callback -> Ptr () -> IO (Ptr C'zip_source)) #
c'zip_stat_index :: Ptr C'zip -> CULLong -> C'zip_flags_t -> Ptr C'zip_stat -> IO CInt #
p'zip_source_zip :: FunPtr (Ptr C'zip -> Ptr C'zip -> CULLong -> C'zip_flags_t -> CULLong -> CLLong -> IO (Ptr C'zip_source)) #
c'zip_stat_init :: Ptr C'zip_stat -> IO () #
p'zip_stat :: FunPtr (Ptr C'zip -> CString -> C'zip_flags_t -> Ptr C'zip_stat -> IO CInt) #
p'zip_stat_index :: FunPtr (Ptr C'zip -> CULLong -> C'zip_flags_t -> Ptr C'zip_stat -> IO CInt) #
p'zip_stat_init :: FunPtr (Ptr C'zip_stat -> IO ()) #