[libvirt] [PATCH 1/3] docs: hacking: separate section about already deleted macros

Ján Tomko jtomko at redhat.com
Wed Oct 16 14:24:40 UTC 2019


Move the recently deleted libvirt macros into a separate section.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 docs/hacking.html.in | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/docs/hacking.html.in b/docs/hacking.html.in
index de450b7cde..92826c5d44 100644
--- a/docs/hacking.html.in
+++ b/docs/hacking.html.in
@@ -1029,6 +1029,15 @@ BAD:
         instead. Don't use g_vasprintf unless having the string length
         returned is unavoidable.</dd>
 
+      <dt>virStrerror</dt>
+      <dd>The GLib <code>g_strerror()</code> function should be used instead,
+        which has a simpler calling convention as an added benefit.</dd>
+    </dl>
+
+    <p>
+      The following libvirt APIs have been deleted already:
+    </p>
+    <dl>
       <dt>VIR_AUTOPTR, VIR_AUTOCLEAN, VIR_AUTOFREE</dt>
       <dd>The GLib macros g_autoptr, g_auto and g_autofree must be used
         instead in all new code. In existing code, the GLib macros must
@@ -1051,10 +1060,6 @@ BAD:
       <dd>The GLib macros g_autoptr and G_DEFINE_AUTOPTR_CLEANUP_FUNC
         should be used to manage autoclean of virObject classes.
         This matches usage with GObject classes.</dd>
-
-      <dt>virStrerror</dt>
-      <dd>The GLib g_strerror() function should be used instead,
-        which has a simpler calling convention as an added benefit.</dd>
     </dl>
 
     <h2><a id="file_handling">File handling</a></h2>
-- 
2.21.0




More information about the libvir-list mailing list