From: David Zeuthen Date: Thu, 12 May 2011 01:16:41 +0000 (-0400) Subject: gdbus-codegen: Mark members in generated class instance structs as private X-Git-Tag: 2.29.6~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce77614142e20c8cfcb5de24a468c743ac0ff381;p=platform%2Fupstream%2Fglib.git gdbus-codegen: Mark members in generated class instance structs as private Signed-off-by: David Zeuthen --- 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')