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:41:34 +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.


hm, not sure about that. As I understand that you like to keep the
contents of these struct private and asks the developers to use the
API only (no direct access), it may be necessary for the compiler to
know the size at build time. It may be important as well from an ABI
point of view.

Cheers,
-- 
Pierre

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

Made by MHonArc.