[libvirt] [PATCH v2] docs: api_extension: Update paths in the examples

Peter Krempa pkrempa at redhat.com
Tue Aug 28 12:43:29 UTC 2018


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
v2:
 - switched from '$SECTION' to '$MODULE' as a hint for the split files
 - changed 'domain.rng' to 'domaincommon.rng' which contains the defs
 - added the '$MODULE' to virsh path

Note some still may be wrong as I did not chec all paths rigorously.

 docs/api_extension.html.in | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/docs/api_extension.html.in b/docs/api_extension.html.in
index 33d82e6ac6..d7fbbd6e90 100644
--- a/docs/api_extension.html.in
+++ b/docs/api_extension.html.in
@@ -96,7 +96,7 @@
       schema and document the new elements or attributes:</p>

     <p><code>
-        docs/schemas/domain.rng<br/>
+        docs/schemas/domaincommon.rng<br/>
         docs/formatdomain.html.in
     </code></p>

@@ -106,7 +106,7 @@
       libvirt library and call the new function:</p>

     <p><code>
-        include/libvirt/libvirt.h.in
+        include/libvirt/libvirt-$MODULE.h.in
         src/libvirt_public.syms
     </code></p>

@@ -137,7 +137,7 @@

     <p>The driver structs are defined in:</p>

-    <p><code>src/driver.h</code></p>
+    <p><code>src/driver-$MODULE.h</code></p>

     <p>
       To define the internal API, first typedef the driver function
@@ -177,7 +177,7 @@

     <p>The public API calls are implemented in:</p>

-    <p><code>src/libvirt.c</code></p>
+    <p><code>src/libvirt-$MODULE.c</code></p>

     <h2><a name='remoteproto'>Implementing the remote protocol</a></h2>

@@ -219,9 +219,9 @@
     </p>

     <p><code>
-        daemon/remote_dispatch_args.h
-        daemon/remote_dispatch_prototypes.h
-        daemon/remote_dispatch_table.h
+        src/remote/remote_daemon_dispatch_stubs.h
+        src/remote/remote_daemon_dispatch.h
+        src/remote/remote_daemon_dispatch.c
         src/remote/remote_protocol.c
         src/remote/remote_protocol.h
     </code></p>
@@ -233,7 +233,7 @@
       method calls go in:
     </p>

-    <p><code>src/remote/remote_internal.c</code></p>
+    <p><code>src/remote/remote_driver.c</code></p>

     <p>Each remote method invocation does the following:</p>

@@ -256,7 +256,7 @@
       The server side dispatchers are implemented in:
     </p>

-    <p><code>daemon/remote.c</code></p>
+    <p><code>src/remote/daemon_dispatch.c</code></p>

     <p>Again, this step uses the .h files generated by make rpcgen.</p>

@@ -309,7 +309,7 @@
     </p>

     <p><code>
-        tools/virsh.c<br/>
+        tools/virsh-$MODULE.c<br/>
         tools/virsh.pod
     </code></p>

-- 
2.16.2




More information about the libvir-list mailing list