On Tue, 2007-07-03 at 21:04 +0200, Pawel Kot wrote:
> Hi,
>
> On 7/3/07, Bastien Nocera <address@hidden> wrote:
> > Is there any reason why GN_OP_OnSMS is disabled in the nk6510 driver?
>
> Well, there are few possibilities. Either nobody tested it or it didn't work.
>
> > Finally, I want to be notified on calls (and check battery info
> > regularly) as well, and I can't seem to find a good example of using
> > both GN_OP_SetCallNotification and GN_OP_OnSMS. Are they exclusive, or
> > can I set both notifications at once?
>
> You can use both. But the subscription for FBUS are done by
> NK6510_Subscribe(). This way phone should send you an unsolicited
> frame with an incoming event (of given type).
I just realised the callbacks were pretty useless to me, as they don't
push any sort of user provided pointer in the callback.
Here's a patch that adds a user_data struct member to gn_data to pass
this pointer to the drivers, and changes to the AT and nk6100 driver to
pass that user_data to callbacks.
This is a show-stopper for gnome-phone-manager. Also includes the sms
status patch for the AT driver.
--
Bastien Nocera <address@hidden>
_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users