aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-04-15 13:12:59 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-04-20 18:24:18 +0000
commit2993eaf8844cfc04800ac22ab4012c8ee6f87b0e (patch)
tree445ca5c2046672f2eb8e37caed3edf78d036d21d /docs/markdown
parentb5c919ebfeb18fd06b89cacb9eb4501861bbc651 (diff)
downloadmeson-2993eaf8844cfc04800ac22ab4012c8ee6f87b0e.zip
meson-2993eaf8844cfc04800ac22ab4012c8ee6f87b0e.tar.gz
meson-2993eaf8844cfc04800ac22ab4012c8ee6f87b0e.tar.bz2
docs: Update gnome.gdbus-codegen docs
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Gnome-module.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md
index 3db6cc0..1bf333f 100644
--- a/docs/markdown/Gnome-module.md
+++ b/docs/markdown/Gnome-module.md
@@ -227,9 +227,11 @@ useful when running the application locally for example during tests.
### gnome.gdbus_codegen()
Compiles the given XML schema into gdbus source code. Takes two
-positional arguments, the first one specifies the name of the source
-files and the second specifies the XML file name.
+positional arguments, the first one specifies the base name to use
+while creating the output source and header and the second specifies
+one XML file.
+* `sources`: list of XML files
* `interface_prefix`: prefix for the interface
* `namespace`: namespace of the interface
* `object_manager`: *(Added 0.40.0)* if true generates object manager code
@@ -257,7 +259,8 @@ Example:
gnome = import('gnome')
# The returned source would be passed to another target
-gdbus_src = gnome.gdbus_codegen('example-interface', 'com.example.Sample.xml',
+gdbus_src = gnome.gdbus_codegen('example-interface',
+ sources: 'com.example.Sample.xml',
interface_prefix : 'com.example.',
namespace : 'Sample',
annotations : [