[at-spi2-core: 23/30] generate-introspection.py: Don't write a version attribute




commit 9a3f42046201c9ed47186625c27e7f043d9cfc3a
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Jul 4 12:11:44 2022 -0500

    generate-introspection.py: Don't write a version attribute
    
    Having <interface name="foo" version="1.2.3"> is non-standard.  DBus
    prefers to do versioning by changing the object and interface *names*,
    so org.foo.Iface1, org.foo.Iface2, etc.

 xml/generate-introspection.py | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/xml/generate-introspection.py b/xml/generate-introspection.py
index 33d77b79..03309101 100644
--- a/xml/generate-introspection.py
+++ b/xml/generate-introspection.py
@@ -50,8 +50,6 @@ const char *%s =
 %s;
 """
 
-VERSION = "0.1.7"
-
 def convert_name (name):
     return "spi_" + name.replace (".", "_")
 
@@ -77,8 +75,6 @@ def generate_introspection (inputs, c_output_filename, h_output_filename):
             #Get and convert the name of the interface.
             name = convert_name (itf.attrib["name"])
 
-            #Create the introspection string with version information.
-            itf.attrib["version"] = VERSION
             contents = convert_contents (ElementTree.tostring (itf, encoding="unicode"))
 
             hcontents += DECTEMPLATE % (name)


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