From 2993eaf8844cfc04800ac22ab4012c8ee6f87b0e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 15 Apr 2018 13:12:59 +0530 Subject: docs: Update gnome.gdbus-codegen docs --- docs/markdown/Gnome-module.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs/markdown') 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 : [ -- cgit v1.1