diff options
Diffstat (limited to 'build-aux/qmi-codegen/Client.py')
-rw-r--r-- | build-aux/qmi-codegen/Client.py | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/build-aux/qmi-codegen/Client.py b/build-aux/qmi-codegen/Client.py index f2f92ee..1672f71 100644 --- a/build-aux/qmi-codegen/Client.py +++ b/build-aux/qmi-codegen/Client.py @@ -99,17 +99,20 @@ class Client: '\n') hfile.write(string.Template(template).substitute(translations)) - # Emit class source - template = ( - '\n' - '/**\n' - ' * SECTION: ${hyphened}\n' - ' * @title: ${camelcase}\n' - ' * @short_description: #QmiClient for the ${service} service.\n' - ' *\n' - ' * #QmiClient which handles operations in the ${service} service.\n' - ' */\n' - '\n' + # Emit class source. Documentation skipped for the CTL service. + template = '' + if self.service != 'CTL': + template += ( + '\n' + '/**\n' + ' * SECTION: ${hyphened}\n' + ' * @title: ${camelcase}\n' + ' * @short_description: #QmiClient for the ${service} service.\n' + ' *\n' + ' * #QmiClient which handles operations in the ${service} service.\n' + ' */\n' + '\n') + template += ( 'G_DEFINE_TYPE (${camelcase}, ${underscore}, QMI_TYPE_CLIENT);\n') if has_indications: |