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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux