How to pass file descriptor through dbus call in python
Zhang, Zhenhua
zhenhua.zhang at intel.com
Tue May 11 21:59:52 EDT 2010
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()
bus = dbus.SystemBus()
obj = dbus.Interface(bus.get_object('org.xxx', '/', interface)
obj.Create(m)
Python tells me that: org.freedesktop.DBus.Error.UnknowMethod: Method 'Create' with signature "i" on interface 'xxx' doesn't exist. Obviously it interprets 'm' as 'i' instead of 'h'.
Regards,
Zhenhua
More information about the Python-list
mailing list