[libvirt PATCH 5/6] docs: glib-adoption: add links to GLib documentation

Ján Tomko jtomko at redhat.com
Thu Sep 24 12:28:39 UTC 2020

Make life a bit easier for people unfamiliar with GLib.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
 docs/glib-adoption.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/glib-adoption.rst b/docs/glib-adoption.rst
index fc0a8cfb08..6dcd4bc14e 100644
--- a/docs/glib-adoption.rst
+++ b/docs/glib-adoption.rst
@@ -18,6 +18,8 @@ Memory allocation
+   https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html
    Prefer the GLib APIs ``g_new0``/``g_renew``/ ``g_free`` in most
    cases.  There should rarely be a need to use
    ``g_malloc``/``g_realloc``.  **NEVER MIX** use of the classic
@@ -28,6 +30,8 @@ Memory allocation
 Array operations
+   https://developer.gnome.org/glib/stable/glib-Arrays.html
    Instead of using plain C arrays, it is preferrable to use one of
    the GLib types, ``GArray``, ``GPtrArray`` or ``GByteArray``.
    These all use a struct to track the array memory and size

More information about the libvir-list mailing list