libzip: libzip-discuss: Re: zipint.h missing in debian package

Thread

Thread Index

Message

From: Pierre Joye <pierre.php%gmail.com@localhost>
To: Dieter Baron <dillo%danbala.tuwien.ac.at@localhost>
Subject: Re: zipint.h missing in debian package
Date: Thu, 17 Jun 2010 12:37:26 +0200

On Thu, Jun 17, 2010 at 12:29 PM, Dieter Baron
<dillo%danbala.tuwien.ac.at@localhost> wrote:
> On Jun 17, 2010, at 12:16, Pierre Joye wrote:
>
>> zipint.h is required as of now. I don't think it is very clean, zip.h
>> should expose all we need to use the library and leave private
>> definitions in zipint.h.
>
>  Exactly.  zipint.h is an internal header with details that should not be 
> exposed to libzip users.
>
>  The contents of struct zip are private to libzip.
>
>  An application using libzip does not need to know them, nor the size of it. 
>  If you want a struct zip, you call zip_open (or one of its variants), which 
> allocates and initializes it for you.  If you want to add a file to a zip 
> archive from a buffer, you open (or create) the archive with zip_open, and 
> pass the returned struct zip pointer as the first argument to 
> zip_source_buffer.
>
>> Right now it is mixed and zipint.h should be
>> distributed as well.
>
>  Why do you think so?  What are you missing from zip.h?


struct zip;
struct zip_file;
struct zip_source;

The compiler cannot know the members nor the size of these struct,
when only zip.h is included.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

Made by MHonArc.