How to handle C functions with variable number of args

"Dog Walker" <[email protected]> Wed, 19 Nov 2008 11:14:32 -0800
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
I read this somewhere in a Pyrex document (maybe) but cannot find it now.

In my .pyx file I have this declaration:

cdef extern int xosd_display(xosd * osd, int line, xosd_command
command, ...) except -1

I want to have a method in this class:

cdef class XOSD:
    cdef xosd *xosdWin
...

like this (but this doesn't work):

    def displaytext(self, line, command,  *arg):
         #and then call the xosd_display function declared above

Where is handling C varargs in Pyrex documented, btw?
-- 
I have seen the future and I'm not in it!