pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Polymorphism on GNU Pdf


From: Zac Brown
Subject: Re: [pdf-devel] Polymorphism on GNU Pdf
Date: Sun, 05 Oct 2008 11:06:08 -0400
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

address@hidden wrote:
   > The current fsys interface allows the people to write fsys
   > implementations by using the fsys definition interface. It is (with
   > some minor modifications) the same strategy used by Adobe in their
   > Acrobat SDK.

   Ah ok, I wasn't entirely sure it was documented as such. (I had a
   suspicion it was meant to be done that way).

It is documented in the reference manual. Basically you provide a
pdf_fsys_impl_s structure containing the pointers to the functions
implementing a specific filesystem to 'pdf_fsys_create'.

In the calls to the filesystem API (such as pdf_fsys_get_free_space)
you pass the pdf_fsys_t value created by pdf_fsys_create or NULL,
meaning that we want to use the default filesystem implementation
(namely the disk filesystem implementation).


Ah, I guess I had a brain fart (for non-Americans that means I forgot). It should have been obvious to me considering the pdf-fsys.h exports those functions with the pdf_fsys_t. Its early yet and I haven't finished my coffee :).

-Zac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]