Re: [xml] Hash tables and scanner function



On Fri, Jul 20, 2001 at 04:23:58PM +0200, Thomas Broyer wrote:
I'm using xmlHashScan with an hash table with 2 keys (a name and a
namespace URI, this is quite common in libxml), and I need these 2 keys in
my xmlHashScanner callback.
The problem is that xmlHashScanner receives only the first key.

Would it break the API/ABI to add 2 parameters to xmlHashScanner for name2
and name3?
  typedef void (*xmlHashScanner) (void *payload, void *data,
                                  const xmlChar *name,
                                  const xmlChar *name2,
                                  const xmlChar *name3);

I'm asking out of ignorance but why not:
    typedef void (*xmlHashScanner) (void *payload, void *data, ...);

    void    xmlHashScanFullx           (xmlHashTablePtr hash,
                                        xmlHashScannerFull f,
                                        void *data, ...)

-- 
albert chin (china thewrittenword com)




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