summaryrefslogtreecommitdiff
path: root/vapi/cairo.vapi
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2010-01-31 16:11:00 +0000
committerJürg Billeter <j@bitron.ch>2010-02-01 16:52:38 +0100
commit7dcc676f1782a18fccfdf5203ef809e4aa6c19c9 (patch)
treed60bb9a37728f3c1dd60bd146df6fcc38d37a222 /vapi/cairo.vapi
parent6f42cc9b284f1258698c9f64222df407457a3395 (diff)
downloadvala-7dcc676f1782a18fccfdf5203ef809e4aa6c19c9.tar.gz
GIR Namespace support
This patch introduces two new CCode annotations for use in VAPI files, gir_namespace and gir_version. This allows us to correctly map vala namespaces to gobject-introspection namespaces when generating GIR files. The mapping is actually done on a SourceFile level. This allows us to work around cases where one vala namespace maps into multiple GIR namespaces (in particular, GLib vs GLib and GObject). In the absense of annotations, the old 'guess it' method will be applied. This commit also adds annotations to some core vapis. Fixes bug 584683.
Diffstat (limited to 'vapi/cairo.vapi')
-rw-r--r--vapi/cairo.vapi2
1 files changed, 1 insertions, 1 deletions
diff --git a/vapi/cairo.vapi b/vapi/cairo.vapi
index 2a070e751..d6c2f4607 100644
--- a/vapi/cairo.vapi
+++ b/vapi/cairo.vapi
@@ -20,7 +20,7 @@
* Jürg Billeter <j@bitron.ch>
*/
-[CCode (cheader_filename = "cairo.h")]
+[CCode (cheader_filename = "cairo.h", gir_namespace = "cairo", gir_version = "1.0")]
namespace Cairo {
[Compact]
[CCode (ref_function = "cairo_reference", unref_function = "cairo_destroy", cname = "cairo_t", cprefix = "cairo_", cheader_filename = "cairo.h")]