Re: [libvirt PATCH v4 10/25] nodedev: add helper functions to remove node devices

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

 



...
> +void
> +virNodeDeviceObjListForEachSafe(virNodeDeviceObjListPtr devs,
> +                                virNodeDeviceObjListIterator iter,
> +                                const void *opaque)
> +{
> +    struct _virNodeDeviceObjListForEachData data = {
> +        .iter = iter,
> +        .opaque = opaque
> +    };
> +
> +    virObjectRWLockWrite(devs);
> +    virHashForEachSafe(devs->objs, virNodeDeviceObjListForEachCb, &data);

I just checked out virHashForEachSafe and virHashForEach says the latter is
deprecated while the use of the former in new code should be rewritten with
GLib, which translates to the use of g_hash_table_foreach_remove().

Erik




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux