diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-08-31 07:40:53 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-04 19:26:04 +0300 |
commit | 04b2c67b7d779e070731d440281640844892be66 (patch) | |
tree | 6874d97543f46b16a2b1794e53f380576f45b8be /docs/markdown | |
parent | c63aa0372b7acd8f6a094ca240eb39c8aab646cf (diff) | |
download | meson-04b2c67b7d779e070731d440281640844892be66.zip meson-04b2c67b7d779e070731d440281640844892be66.tar.gz meson-04b2c67b7d779e070731d440281640844892be66.tar.bz2 |
gnome.gdbus_codegen(): Add annotations keyword
Fixes #2123
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Gnome-module.md | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index e81875a..3672761 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -220,14 +220,31 @@ useful when running the application locally for example during tests. 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. There are three -keyword arguments. `interface_prefix` and `namespace` map to -corresponding features of the compiler while `object_manager` (since -0.40.0), when set to true, generates object manager code. +files and the second specifies the XML file name. + +* `interface_prefix`: prefix for the interface +* `namespace`: namespace of the interface +* `object_manager`: *(Added 0.40.0)* if true generates object manager code +* `annotations`: *(Added 0.43.0)* list of lists of 3 strings for the annotation for `'ELEMENT', 'KEY', 'VALUE'` Returns an opaque object containing the source files. Add it to a top level target's source list. +Example: + +```meson +gnome = import('gnome') + +# The returned source would be passed to another target +gdbus_src = gnome.gdbus_codegen('example-interface', 'com.example.Sample.xml', + interface_prefix : 'com.example.', + namespace : 'Sample', + annotations : [ + ['com.example.Hello()', 'org.freedesktop.DBus.Deprecated', 'true'] + ] +) +``` + ### gnome.generate_vapi() Creates a VAPI file from gir. The first argument is the name of the |