mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-14 14:25:13 +02:00
codegen: fix array out-param annotations
When using gdbus-codegen to produce generated code for a method with an out parameter with a signature like 'as', make sure to include an "(array)" annotation for that parameter. (Reworked by Philip Withnall to improve code formatting.) https://bugzilla.gnome.org/show_bug.cgi?id=741167
This commit is contained in:
committed by
Philip Withnall
parent
2a0db6d868
commit
d35d9b7911
@ -1395,7 +1395,7 @@ class CodeGenerator:
|
||||
' * @proxy: A #%sProxy.\n'
|
||||
%(i.name_lower, m.name_lower, i.camel_name))
|
||||
for a in m.out_args:
|
||||
self.c.write(' * @out_%s: (out): Return location for return parameter or %%NULL to ignore.\n'%(a.name))
|
||||
self.c.write(' * @out_%s: (out)%s: Return location for return parameter or %%NULL to ignore.\n'%(a.name, ' ' + a.array_annotation if a.array_annotation else ''))
|
||||
if unix_fd:
|
||||
self.c.write(' * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.\n')
|
||||
self.c.write(self.docbook_gen.expand(
|
||||
@ -1450,7 +1450,7 @@ class CodeGenerator:
|
||||
if unix_fd:
|
||||
self.c.write(' * @fd_list: (nullable): A #GUnixFDList or %NULL.\n')
|
||||
for a in m.out_args:
|
||||
self.c.write(' * @out_%s: (out): Return location for return parameter or %%NULL to ignore.\n'%(a.name))
|
||||
self.c.write(' * @out_%s: (out)%s: Return location for return parameter or %%NULL to ignore.\n'%(a.name, ' ' + a.array_annotation if a.array_annotation else ''))
|
||||
if unix_fd:
|
||||
self.c.write(' * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.\n')
|
||||
self.c.write(self.docbook_gen.expand(
|
||||
|
Reference in New Issue
Block a user