[Vala] Unpacking a D-Bus Struct with a signature of a(asaasay)
- From: Randy B <email tehk gmail com>
- To: vala-list gnome org
- Subject: [Vala] Unpacking a D-Bus Struct with a signature of a(asaasay)
- Date: Thu, 11 Mar 2010 17:31:34 -0500
Hey,
I am loving vala but I've hit a wall. I am calling a method over d-bus
which returns a struct with a signature of a(asaasay) so defined a
struct like
public struct MyStruct {
public string[] structure;
public string[][] value_sets;
public char[] payload;
}
My first error is during compiling where I run into:
In function ‘_vala_array_dup1’:
error: too few arguments to function ‘_vala_array_dup2’
Making value_sets weak makes this error go away. So I call the method
from my D-Bus object and it returns to the array of structs. I can see
the array length but I can not touch any of the elements. If I make
all the struct members weak I can touch the elements but not the
structs members as it results in a segfault on g_strdup that I can see
using nemiver. I am new to Vala and D-Bus so I have no clue what I am
doing wrong.
Thanks,
Randal
a(asaasay) is an array of structs with an array of strings, array of
array of string, and an array of bytes by the way.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]