[Vala] telepathy-glib vapi problems
- From: "pHilipp Zabel" <philipp zabel gmail com>
- To: vala-list gnome org
- Subject: [Vala] telepathy-glib vapi problems
- Date: Thu, 3 Jan 2008 15:12:56 +0100
Hi,
I'm new to Vala, and I'd like to have bindings for telepathy-glib. Has
anybody worked on this already?
I tried to make some and did not succeed because gen-introspect somehow
freaks out on the telepathy-glib includes.
Problem: telepathy-glib/_gen/*.h are not shielded against multiple
inclusion with #ifdefs. But they are not supposed to be included
directly anyway (they are all included from telepathy-glib/*.h). So I
exclude the telepath-glib/_gen/*.h files:
Index: vapi/packages/telepathy-glib/telepathy-glib.deps
===================================================================
--- vapi/packages/telepathy-glib/telepathy-glib.deps (revision 0)
+++ vapi/packages/telepathy-glib/telepathy-glib.deps (revision 0)
@@ -0,0 +1 @@
+dbus-glib-1
Index: vapi/packages/telepathy-glib/telepathy-glib.excludes
===================================================================
--- vapi/packages/telepathy-glib/telepathy-glib.excludes (revision 0)
+++ vapi/packages/telepathy-glib/telepathy-glib.excludes (revision 0)
@@ -0,0 +1,9 @@
+_gen/telepathy-enums.h
+_gen/telepathy-errors.h
+_gen/gtypes.h
+_gen/telepathy-interfaces.h
+_gen/tp-svc-channel-interfaces.h
+_gen/tp-svc-connection-interfaces.h
+_gen/tp-svc-connection-manager-interfaces.h
+_gen/tp-svc-generic-interfaces.h
+_gen/tp-svc-media-interfaces.h
Index: vapi/packages/telepathy-glib/telepathy-glib.namespace
===================================================================
--- vapi/packages/telepathy-glib/telepathy-glib.namespace (revision 0)
+++ vapi/packages/telepathy-glib/telepathy-glib.namespace (revision 0)
@@ -0,0 +1 @@
+Telepathy
Index: vapi/packages/telepathy-glib/telepathy-glib.metadata
===================================================================
--- vapi/packages/telepathy-glib/telepathy-glib.metadata (revision 0)
+++ vapi/packages/telepathy-glib/telepathy-glib.metadata (revision 0)
@@ -0,0 +1 @@
+Telepathy cheader_filename="telepathy-glib/dbus.h"
Index: vapi/packages/telepathy-glib/telepathy-glib.files
===================================================================
--- vapi/packages/telepathy-glib/telepathy-glib.files (revision 0)
+++ vapi/packages/telepathy-glib/telepathy-glib.files (revision 0)
@@ -0,0 +1,2 @@
+include/telepathy-1.0/telepathy-glib
+lib/libtelepathy-glib.so
This way vala-gen-introspect finishes without throwing errors, but the
resulting .gi file does not contain the contents of the
telepathy-glib/_gen/*.h files. An example:
$ /usr/lib/vala/gen-introspect -U__GNUC__ `pkg-config --cflags
telepathy-glib`
/usr/include/telepathy-1.0/telepathy-glib/_gen/tp-svc-channel.h
returns 108 methods, while
$ /usr/lib/vala/gen-introspect -U__GNUC__ `pkg-config --cflags
telepathy-glib`
/usr/include/telepathy-1.0/telepathy-glib/svc-channel.h
returns none at all, even tough telepathy-glib/svc-channel.h does
nothing but #include <telepathy-glib/_gen/tp-svc-channel.h>.
Probably I am doing something wrong? Or is gen-introspect?
Or are we both?
cheers
Philipp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]