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
 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to