Hi Simon, On 23 November 2010 16:07, Simon LETHBRIDGE <[email protected]> wrote: >> -----Original Message----- >> From: andrzej zaborowski [mailto:[email protected]] >> Since (correct me if I'm wrong) SendPositioningControl can only be >> called in response to PositioningRequest(), it would seem more logical >> to skip SendPositioningControl and have the agent return the xml >> string from PositioningRequest(), e.g. >> >> string PositioningRequest(string xml_element) >> >> A D-bus call can take a couple of minutes to respond if needed. >> > There may be several calls to PositioningRequest() before a response is sent. > The ofono agent would need to interpret the messages to see > whether it should pend waiting for a response from the GNSS/GPS driver. > Once a positioning procedure has been started it may get aborted. > This abort may not be detected by the agent If the call > to the PositioningRequest() does not return.
So should the agent interface additionally have a method like void AbortPositioningRequest()? I have posted this as just a possible idea. However parallel agent calls and aborting calls are both used in the agent interfaces in bluez and ofono. D-bus is asynchronous, so whether you call a method and return immediately and then call another method to pass the response, or make it a single method call is just a difference in the protocol. Best regards _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
