init_check


Description:


public bool init_check (ref unowned string[]? argv) throws Error

This function does the same work as init with only a single change: It does not terminate the program if the Libvirt GLib library can't be initialized.

Instead it returns false on failure.

This way the application can fall back to some other mode of operation.

Parameters:

argv

Address of the argv parameter of main, or null. Any options understood by GTK+ are stripped before return.

argc

Address of the argc parameter of your main function (or 0 if argv is NULL). This will be changed if any arguments were handled.

Returns:

true if the library was successfully initialized, false otherwise


Namespace: GVir