Re: [Vala] CCode array length field name
- From: pHilipp Zabel <philipp zabel gmail com>
- To: aaron andersen <aaron r andersen gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] CCode array length field name
- Date: Sun, 29 Nov 2009 00:38:21 +0100
On Sat, Nov 28, 2009 at 11:31 PM, aaron andersen
<aaron r andersen gmail com> wrote:
Didn't see anything quickly browsing through the regular spots... maybe
someone here can help me out.
Binding for a vapi.
c struct:
struct SomeStruct {
uint8 *data;
size_t dataLength;
};
vapi binding:
public class SomeStruct {
[CCode (array_param_name?...)] // what should this be ?
[CCode (array_length_name = "dataLength", array_length_type = "size_t")]
Not sure if that should be size_t or gsize.
uint8[] data;
}
used in vala:
var foo = new SomeStruct ();
stdout.printf ("length: %u\n", foo.data.length);
generated c code:
fprintf (stdout, "length: %u\n", foo->data.data_length1); // should be
foo->data.dataLength
Thanks for any help.
regards
Philipp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]