On Sat, Nov 28, 2009 at 11:31 PM, aaron andersen
<[email protected]> 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
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list