Re: nm_device_disconnect



On 04/01/2014 01:18 PM, Manuel Yguel wrote:
however in the include directory of libnm-glib the file nm-device.h
contains only the following function:
                   void nm_device_disconnect (NMDevice *device,
NMDeviceDeactivateFn callback, gpointer user_data);

I tried to use the last one with a dummy callback function and with a
pointer to a NMClient object but it did not disconnect the network.

Thanks for any hint or pointer.

A libnm-glib method that takes a callback is most likely asynchronous.
So you need to call nm_device_disconnect() and then run the main loop
until the callback gets called.

-- Dan



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