[libvirt] [PATCH 08/16] docs: hacking: mention GLib alternatives of libvirt allocation macros

Andrea Bolognani abologna at redhat.com
Mon Oct 21 12:33:37 UTC 2019


On Sat, 2019-10-19 at 00:36 +0200, Ján Tomko wrote:
> +        <tr><th>deprecated version</th><th>GLib version</th><th>Notes</th></tr>
> +        <tr><td><code>VIR_ALLOC(var)</code></td><td><code>g_new(var_t, 1)</code></td>
> +            <td>yes, you need to tell it the type explicitly</td></tr>

Please consider using a more neutral wording, such as

  the type needs to be passed to the function explicitly

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list