restart periodic inquiry

Adolfo Bulfoni <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>

Hi all,

I'm currently working with DBUS and GLIB. I have made a function that calls StartPeriodicDiscovery(). Everything works fine but, at certain point, I want to stop and restart it and here problems arise: when I call StopPeriodicDiscovery() my program exits and I can't call again StartPeriodicDiscovery. My program exits just after the StopPeriodicInquiry() is performed, and I dont call the g_main_loop_quit(loop) function. Is it a normal behaviour?
For me it is necessary to restart the inquiry procedure in some cases. Is there a way to restart the periodic discovery or should I move to the normal inquiry procedure? With the standard inquiry procedure I could call CancelInquiry and then I could start the inquiry procedure again.
Thanks all!

Adolfo
_________________________________________________________________
Cerchi una palestra vicino a casa? La trovi con Live Search Maps
 http://maps.live.it
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.