Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?
- From: Luca Bruno <lethalman88 gmail com>
- To: Lei Miao <leimiao09 gmail com>
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] How to implement the get_type method of Gst.URIHandler interface in vala?
- Date: Mon, 17 Mar 2014 09:33:50 +0100
On 16/03/2014 22:33, Lei Miao wrote:
Yes, I tried it, but it has no effect.
I have the following in my vala code:
...
[CCode (vfunc = "get_type")]
public URIType get_uri_type (Type type) { return URIType.SRC; }
...
Is it what you recommended?
Basically, the problem is that "iface->get_type =..." is missing in
"...gst_uri_handler_interface_init()" function in the generated c file.
Regards,
Sorry, vfunc_name:
https://git.gnome.org/browse/vala/tree/vapi/gio-2.0.vapi#n1365
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]