Re: [Vala] Genie xmlrpc-c bindings test
- From: Evan Nemerson <evan coeus-group com>
- To: Abderrahim Kitouni <a kitouni gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Genie xmlrpc-c bindings test
- Date: Mon, 13 Sep 2010 16:32:02 -0700
On Mon, 2010-09-13 at 19:53 +0100, Abderrahim Kitouni wrote:
<في ن، 13-09-2010 عند 22:07 +1200 ، كتب Phil Daintree:
Trouble again guys...
I have attempted to convert pancake's xmlrpc-c test client that I
modified to use a call to the webERP PHP demo server's XML-RPC api. It
is using pancake's xml-rpc-c bindings
The code fails with:
# valac --pkg=xmlrpc --Xcc=-lxmlrpc_client xmlrpc-c_test.gs
/initrd/mnt/dev_save/my-documents/genie_programs/xmlrpc-c_test.vala.c:
In function '_xmlrpc_INCREF0':
/initrd/mnt/dev_save/my-documents/genie_programs/xmlrpc-c_test.vala.c:90: error:
void value not ignored as it ought to be
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
Off the top of my head : xmlrpc_INCREF doesn't return anything, but
valac expects it to return the instance (like g_object_ref). I don't
know if there is a workaround for this, someone more familiar with the
internals of valac may be able to help.
If that is the case, then adding
[CCode (ref_function_void = true)]
to the class should do the trick/
-Evan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]