osc: Don't open the plot window if the IIO context was not created

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: Fix memory leak

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: Grey out the "local context" option if not available

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: don't hard-code a fake IP

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: Update the list of IIO devices according to selection

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
osc: Create the IIO contextes using the default backend

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
osc: Added global function application_reload

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: Only preload device list and FRU info if using local ctx

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Connect dialog: Reload application with the new IIO context

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
plugins/fmcomms2: Stop update thread when exiting

It was previously making the OSC randomly segfault when exiting the OSC,
which was resulting in the INI profile being only partly saved.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
osc: Additional cleanups when exiting/reloading the OSC

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>