Hi, I've a little problem for define this : extern enum __pmerrno_t { PM_ERR_MEMORY = 1, PM_ERR_SYSTEM, .... PM_ERR_WRONG_ARCH } pm_errno;
I've write : pacman=cdll.LoadLibrary("libpacman.so") ... #errors ( PM_ERR_MEMORY , PM_ERR_SYSTEM, ... PM_ERR_WRONG_ARCH )=map(ctypes.c_int, xrange(1,63)) I would use pacman.pm_errno. That should be a integer but if I print the value it I've : <_FuncPtr object at 0xb73ce984> Howto find the value (or define ) pacman.pm_errno ? The complete code can be find here : http://dors.frugalware.org/tmpgit/frugal-tweak/py-pacman/py-pacman.py and the .h is here http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=blob_plain;f=lib/libpacman/pacman.h;h=0f2a191681085dee99f485bad43a620043528904;hb=HEAD -- #--------------------------------------------------------------------------- # Bouleetbil # #--------------------------------------------------------------------------- # _ _ # (o)--(o) # /.______.\ # \_______/ # ./ \. # ( . , ) # \ \_\\//_/ / # ~~ ~~ ~~ #---------------------------------------------------------------------------
-- http://mail.python.org/mailman/listinfo/python-list