[libvirt] [RFC PATCH 3/8] rpc: Add JSON to the list of fixups in gendispatch

Andrea Bolognani abologna at redhat.com
Mon Apr 1 12:39:25 UTC 2019


Without this tweak, the script will generate functions and code
that look like virCromulentJsonFrobnicate() instead of the
expected virCromulentJSONFrobnicate(), thus making it impossible
to integrate the automatically generated functions with the
hand-crafted ones.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 src/rpc/gendispatch.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
index ae3a42c4c1..3708d56810 100755
--- a/src/rpc/gendispatch.pl
+++ b/src/rpc/gendispatch.pl
@@ -74,6 +74,7 @@ sub fixup_name {
     $name =~ s/Scsi/SCSI/;
     $name =~ s/Wwn$/WWN/;
     $name =~ s/Dhcp$/DHCP/;
+    $name =~ s/Json/JSON/;
 
     return $name;
 }
-- 
2.20.1




More information about the libvir-list mailing list