gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GN_OP_OnSMS in nk6510


From: Bastien Nocera
Subject: Re: GN_OP_OnSMS in nk6510
Date: Wed, 04 Jul 2007 11:25:47 +0100

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> 

Attachment: gnokii-add-user-data.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]