[Vala] Compact class with an unusual (in GLib terms) constructor
- From: Gergely Polonkai <gergely polonkai eu>
- To: Vala <vala-list gnome org>
- Subject: [Vala] Compact class with an unusual (in GLib terms) constructor
- Date: Wed, 05 Apr 2017 15:38:55 +0000
Hello,
libjwt[1] has a strange constructor in GLib terms:
int jwt_new(jwt_t **jwt);
It returns 0 on success (like many C functions) or any valid errno on
failure. I made the following binding for now:
[CCode (cname = "jwt_new")]
public static int create(out JWT jwt);
Is there a better way to do this?
Best,
Gergely
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]