On Mon, Jan 16, 2006, Kimmo Hämäläinen wrote:
> On Sat, 2006-01-14 at 15:25, ?????? ??? wrote:
> > simple a button,press it then begin to BT search 
> > I do like this:
> > button_clicked_cb
> > {....
> > osso_rpc_run_with_defaults(osso_context,"btsearch","start_search",NULL,NULL,
> > DBUS_TYPE_INVALID);
> > );
> > ....
> > }
> > the problem is how  I should write to get the signal
> > from com.nokia.btsearch.signal interface.
> > anybody help me?     thanks very much!!
> 
> I think you have to use the DBus API directly. For example, use
> dbus_connection_add_filter() to register a callback function and
> subscribe to the signal with dbus_bus_add_match(). You can get the DBus
> connection from Libosso with osso_get_sys_dbus_connection().

Also, are you sure that osso_rpc_run_with_defaults uses the system bus?
(btsearch currently doesn't work with the session bus)

Johan
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to