[maemo-developers] [maemo-developers] accessing to the ICD with dbus and python
From: Fabio Forno fabio.forno at gmail.comDate: Thu Jul 27 21:01:34 EEST 2006
- Previous message: [maemo-developers] custom gstreamer plugins
- Next message: [maemo-developers] accessing to the ICD with dbus and python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi I'm trying to use the ICD daemon from within a python progam. In order to start I made simple program asking some info about the present wlan connection. if I use the synchronous rpc interface with the command ret = osso_c.rpc_run("com.nokia.icd", "/com/nokia/icd", "com.nokia.icd", "get_ipinfo", wait_reply = True, use_system_bus=True) I get an aswer, but in ret it contains only the first return parameter, the name of the connection, instead of all the four parameters from the specs: Return Parameters: 1. string - Name of the current IAP 2. string - IP address of the interface 3. string - Netmask 4. stinrg - IP address of the default gateway If I try to use the async interface, I've to problems: 1) I don't know how to access the system bus , since there's no use_system_bus_flag 2) the call leads to a seg fault osso_c.rpc_async_run("com.nokia.icd", "/com/nokia/icd", "com.nokia.icd", "get_ipinfo", callback = cb) any idea? thanks -- Fabio Forno, PhD Istituto Superiore Mario Boella Jabber ID: xmpp:ff at kamin.polito.it ** Try Jabber http://www.jabber.org
- Previous message: [maemo-developers] custom gstreamer plugins
- Next message: [maemo-developers] accessing to the ICD with dbus and python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]