[maemo-developers] [maemo-developers] Re: [maemo-users] Using osso_iap_cb example
From: Jari Tenhunen jari.tenhunen at iki.fiDate: Tue Jul 25 10:19:01 EEST 2006
- Previous message: [maemo-developers] where can I find the kernel source of 770 ?
- Next message: [maemo-developers] libebook
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jul 24, 2006 at 11:24:24PM -0700, Brad Burleson wrote: > I'm trying to capture the events generated when the 770 goes on and > off-line, and I've written a simple test program just to mess around. The > callback gets registered, but I never see any output from the callback. I > suspect it's something simple. > > Anyone got any ideas? (I think maemo-developers is a better forum for this) It seems that the callback isn't actually registered (on D-BUS) until you call some osso-ic function that does something on D-BUS. So, after calling osso_iap_connect() you might have a better chance. Of course there's then the side effect that you have requested a connection and the system will try to keep it on indefinitely. If that's a problem (you only want to monitor), you should be able to use the ICD D-BUS API directly and listen for the "status_changed" signal: http://www.maemo.org/platform/docs/howtos/howto_connectivity_guide.html#DBUSInterfaceICD Cheers, Jari -- Jari Tenhunen, stardate [-29]6121.15 :wq
- Previous message: [maemo-developers] where can I find the kernel source of 770 ?
- Next message: [maemo-developers] libebook
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]