Re: How to pass FILE *

2012-09-29 Thread Stefan Behnel
xDog Walker, 29.09.2012 10:45: > On Friday 2012 September 28 21:27, you wrote: >> A tiny bit of googling suggests the following approach: >> http://stackoverflow.com/questions/3794309/python-ctypes-python-file-object >> -c-file/3794401#3794401 > > Thanks for your response. > > My "tiny bit of Go

Re: How to pass FILE *

2012-09-29 Thread xDog Walker
On Friday 2012 September 28 21:27, you wrote: > A tiny bit of googling suggests the following approach: > http://stackoverflow.com/questions/3794309/python-ctypes-python-file-object >-c-file/3794401#3794401 Thanks for your response. My "tiny bit of Googling" brought no joy but I did try successf

Re: How to pass FILE *

2012-09-28 Thread Chris Rebert
On Fri, Sep 28, 2012 at 2:55 PM, xDog Walker wrote: > > The function I am trying to call wants a FILE *: > > dlg_progressbox(const char *title, > const char *cprompt, > int height, > int width, > int pauseopt, > FILE *

How to pass FILE *

2012-09-28 Thread xDog Walker
The function I am trying to call wants a FILE *: dlg_progressbox(const char *title, const char *cprompt, int height, int width, int pauseopt, FILE *fp) I can open the file to be referenced: fp = os.fdopen(self.pipef

How to pass file descriptor through dbus call in python

2010-05-11 Thread Zhang, Zhenhua
Hi, Hi, DBus 1.3 supports passing file descriptor through dbus method call. So I am writing a python test case to verify my interface. Can someone answer my question: how to pass a file descriptor through python-dbus call? For example: import os m, s = os.openpty()