<br><br><div><span class="gmail_quote">On 7/20/07, <b class="gmail_sendername">Jussi Kukkonen</b> <<a href="mailto:jhkukkon@cc.hut.fi">jhkukkon@cc.hut.fi</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
keith preston wrote:<br>> There was a part in the api specification for shutting down backend<br>> services. We could call that method, although it doesn't quite work if<br>> others are listening. There could be a shutdown signal broadcast to
<br>> inform users that a backend is going down an a stop shutdown method. I'm<br>> open to other ideas. Or we could just ignore this because if it gets<br>> shutdown and someone else makes a dbus call to it, it will restart.
<br><br>I like the shutting_down-signal idea. At least it's the best solution I<br>can think of. So the plan is this:<br><br>1. Add functions to C library<br> geoclue_*_shutdown_specific(service, path);<br><br> I can't imagine where a default version (like with init) would be
<br> needed... but geoclue_*_shutdown_all() might be useful.</blockquote><div><br>I do like the idea of geoclue_*_shutdown_all to be a geoclue master api.<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2. Add signals to backend interface (and corresponding callback-setters<br> in C library):<br> <signal name="shutting_down"><br> geoclue_position_set_shutdown_callback()<br><br> How does the dbus stuff work: do the receivers know which backend
<br> sends shutting_down-signal (in case there are several running) or<br> should that info be included as an argument?</blockquote><div><br>Yes, the receivers should know who sends the signal. To hear the signal the receivers must specifically subscribe to a signal from dbus. So when a reciever connects to a backend, it will also connect to it's shutdown signal.
<br><br> Keith<br><br></div></div>