[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

python swig binding problem with _p_p_apr_hash_t

From: Alexis Boutillier <alexis.boutillier_at_arteris.net>
Date: 2004-03-12 10:22:06 CET

Hi,

I try to make a client program that read the entries so i wanted to test
the svn_wc_entries_read() fonction of the wc package.

but i don't known how to use it and how to create an "_p_p_apr_hash_t"
type to return the entries. I try to pass a dictionnary but it return an
error like this :
Traceback (most recent call last):
   File "test.py", line 45, in ?
     core.run_app(check)
   File "/opt/alexis/svn1.0/lib/svn-python/svn/core.py", line 33, in run_app
     return apply(func, (pool,) + args, kw)
   File "test.py", line 27, in check
     t = wc.svn_wc_entries_read(listres,adm_baton,True,pool)
TypeError: Expected a pointer

i don't know how to create an apr_hash_t in the pool there is no function
availlable to do so.

this is the python code :

check(pool):
        adm_baton = wc.svn_wc_adm_open(None , dir, 1, 1, pool)
        listres = {}
        t = wc.svn_wc_entries_read(listres,adm_baton,True,pool)

if __name__ == '__main__':
        core.run_app(check)

thanks for the help.

-- 
Boutillier Alexis
Methodology engineer
Arteris SA
The Network-on-Chip Company (TM)
www.arteris.net
6 parc Ariane Immeuble Mercure
78284 Guyancourt Cedex
France
Office: (+33) 1 61 37 38 71
Fac:    (+33) 1 61 37 38 41
Alexis.Boutillier@arteris.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 12 10:23:36 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.