Re: [Vala] typeinfo of non-existent enum in vapi file
- From: Evan Nemerson <evan coeus-group com>
- To: Thomas Olson <tolson stratagium net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] typeinfo of non-existent enum in vapi file
- Date: Sat, 05 Oct 2013 10:34:44 -0700
On Sat, 2013-10-05 at 06:19 -0500, Thomas Olson wrote:
Hello,
The sqlite3.vapi file defines the Sqlite.Action enum, which does not
really exist in the Sqlite souce code, so executing the following fails:
Type t = typeof(Sqlite.Action);
EnumClass k = (EnumClass)t.class_ref(); // doesn't get this far
The compiler error message is:
error: ‘SQLITE3_TYPE_ACTION’ undeclared (first use in this function)
Is there a way to create a vapi file so that Sqlite.Action would not be
considered an external define and instead considered a native Vala
declaration?
No, however they should have has_type_id = false CCode annotations.
I've just added them (01b9ffde), so now you should get G_TYPE_INT
instead of SQLITE3_TYPE_*.
-Evan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]