[glib] gdbus-codegen: Mark members in generated class instance structs as private



commit ce77614142e20c8cfcb5de24a468c743ac0ff381
Author: David Zeuthen <davidz redhat com>
Date:   Wed May 11 21:16:41 2011 -0400

    gdbus-codegen: Mark members in generated class instance structs as private
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbus-codegen/codegen.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbus-codegen/codegen.py b/gio/gdbus-codegen/codegen.py
index 63832a0..3df0f5e 100644
--- a/gio/gdbus-codegen/codegen.py
+++ b/gio/gdbus-codegen/codegen.py
@@ -392,6 +392,7 @@ class CodeGenerator:
             self.h.write('\n')
             self.h.write('struct _%sProxy\n'%(i.camel_name))
             self.h.write('{\n')
+            self.h.write('  /*< private >*/\n')
             self.h.write('  GDBusProxy parent_instance;\n')
             self.h.write('  %sProxyPrivate *priv;\n'%(i.camel_name))
             self.h.write('};\n')
@@ -478,6 +479,7 @@ class CodeGenerator:
             self.h.write('\n')
             self.h.write('struct _%sSkeleton\n'%(i.camel_name))
             self.h.write('{\n')
+            self.h.write('  /*< private >*/\n')
             self.h.write('  GDBusInterfaceSkeleton parent_instance;\n')
             self.h.write('  %sSkeletonPrivate *priv;\n'%(i.camel_name))
             self.h.write('};\n')
@@ -541,6 +543,7 @@ class CodeGenerator:
             self.h.write('\n')
             self.h.write('struct _%sObjectProxy\n'%(self.namespace))
             self.h.write('{\n')
+            self.h.write('  /*< private >*/\n')
             self.h.write('  GDBusObjectProxy parent_instance;\n')
             self.h.write('  %sObjectProxyPrivate *priv;\n'%(self.namespace))
             self.h.write('};\n')
@@ -566,6 +569,7 @@ class CodeGenerator:
             self.h.write('\n')
             self.h.write('struct _%sObjectSkeleton\n'%(self.namespace))
             self.h.write('{\n')
+            self.h.write('  /*< private >*/\n')
             self.h.write('  GDBusObjectSkeleton parent_instance;\n')
             self.h.write('  %sObjectSkeletonPrivate *priv;\n'%(self.namespace))
             self.h.write('};\n')
@@ -600,6 +604,7 @@ class CodeGenerator:
             self.h.write('\n')
             self.h.write('struct _%sObjectManagerClient\n'%(self.namespace))
             self.h.write('{\n')
+            self.h.write('  /*< private >*/\n')
             self.h.write('  GDBusObjectManagerClient parent_instance;\n')
             self.h.write('  %sObjectManagerClientPrivate *priv;\n'%(self.namespace))
             self.h.write('};\n')



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