pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] Hash module API


From: jemarch
Subject: Re: [pdf-devel] Hash module API
Date: Sun, 06 Apr 2008 18:45:25 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (powerpc-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)


   Ok. I have written a first version for the Hash Module API. 
   Also added the Arch entry on the wiki page.

Thanks.

I would add the following functions:

 `pdf_bool_t pdf_hash_key_p (hash_table, key)'

     Return PDF_TRUE if there is an entry in HASH_TABLE with key KEY.

 `pdf_size_t pdf_hash_num_entries (hash_table)'

     Return the number of entries in HASH_TABLE.

 `pdf_status_t pdf_hash_rename (hash_table, key, new_key)'

     Rename KEY to NEW_KEY in HASH_TABLE.

 `pdf_status_t pdf_hash_mapkeys (hash_table,
                                 pdf_hash_mapkeys_fn_t func,
                                 void *client_data)'

     Apply FUNC to each element contained in HASH_TABLE. The prototype
     of FUNC should be:

       pdf_status_t func (pdf_hash_t hash_table, char *key, void *client_data)

     FIXME: Should we define an order???
    

   I don't know how the enum "pdf_hash_value_type_e" is going to be
   used yet.

We are not going to use that type, since we are working with generic
pointers to store data into the hash table. The definition of
`pdf_hash_value_type_e' in gnupdf.texi should be deleted.





reply via email to

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