diff options
Diffstat (limited to 'build-aux/qmi-codegen/VariableStruct.py')
-rw-r--r-- | build-aux/qmi-codegen/VariableStruct.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build-aux/qmi-codegen/VariableStruct.py b/build-aux/qmi-codegen/VariableStruct.py index 78e6752..996c279 100644 --- a/build-aux/qmi-codegen/VariableStruct.py +++ b/build-aux/qmi-codegen/VariableStruct.py @@ -163,6 +163,9 @@ class VariableStruct(Variable): of the variables in the struct. """ def build_getter_declaration(self, line_prefix, variable_name): + if not self.visible: + return "" + translations = { 'lp' : line_prefix, 'format' : self.public_format, 'name' : variable_name } @@ -176,6 +179,9 @@ class VariableStruct(Variable): Documentation for the getter """ def build_getter_documentation(self, line_prefix, variable_name): + if not self.visible: + return "" + translations = { 'lp' : line_prefix, 'format' : self.public_format, 'name' : variable_name } @@ -189,6 +195,9 @@ class VariableStruct(Variable): Builds the Struct getter implementation """ def build_getter_implementation(self, line_prefix, variable_name_from, variable_name_to, to_is_reference): + if not self.visible: + return "" + translations = { 'lp' : line_prefix, 'from' : variable_name_from, 'to' : variable_name_to } @@ -209,6 +218,9 @@ class VariableStruct(Variable): of the variables in the struct. """ def build_setter_declaration(self, line_prefix, variable_name): + if not self.visible: + return "" + translations = { 'lp' : line_prefix, 'format' : self.public_format, 'name' : variable_name } @@ -222,6 +234,9 @@ class VariableStruct(Variable): Documentation for the setter """ def build_setter_documentation(self, line_prefix, variable_name): + if not self.visible: + return "" + translations = { 'lp' : line_prefix, 'format' : self.public_format, 'name' : variable_name } @@ -234,6 +249,9 @@ class VariableStruct(Variable): Builds the Struct setter implementation """ def build_setter_implementation(self, line_prefix, variable_name_from, variable_name_to): + if not self.visible: + return "" + built = '' for member in self.members: built += member['object'].build_setter_implementation(line_prefix, |