diff --git a/docs/hacking.html.in b/docs/hacking.html.in index 6bae7f5f64..981b782d31 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -1066,6 +1066,19 @@ BAD: should be used to manage autoclean of virObject classes. This matches usage with GObject classes. +
deleted version | GLib version | Notes |
---|---|---|
VIR_AUTOPTR | g_autoptr | |
VIR_AUTOCLEAN | g_auto | |
VIR_AUTOFREE | g_autofree | The GLib version does not use parentheses |
VIR_AUTOUNREF | g_autoptr | The cleanup function needs to be defined |
VIR_DEFINE_AUTOPTR_FUNC | G_DEFINE_AUTOPTR_CLEANUP_FUNC | |
VIR_DEFINE_AUTOCLEAN_FUNC | G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC | |
VIR_STEAL_PTR | g_steal_pointer |
+ a = f(&b) instead of f(a, b) |
VIR_RETURN_PTR | return g_steal_pointer |