Re: [Vala] Writing binding for non-GLib library using FILE *
- From: Al Thomas <astavale yahoo co uk>
- To: Gergely Polonkai <gergely polonkai eu>, Vala <vala-list gnome org>
- Subject: Re: [Vala] Writing binding for non-GLib library using FILE *
- Date: Wed, 5 Apr 2017 15:28:28 +0000 (UTC)
From: Gergely Polonkai <gergely polonkai eu>
Sent: Wednesday, 5 April 2017, 16:20
Subject: [Vala] Writing binding for non-GLib library using FILE *
I’m trying to create a binding for libjwt, and one of its functions use
FILE * pointer to save a JWT token to a file. Reading [2] makes me think I
can use FileStream here, but vala complains:
libjwt.vapi:77.28-77.37: error: The type name `FileStream' could not be
found
FileStream is part of the GLib namespace. I think you either need to make
that explicit, so GLib.FileStream. Alternatively you can include the
namespace in your VAPI by adding:
using GLib;
at the beginning of the VAPI.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]