Re: [Vala] passing string length in VAPI file

2013-12-06 Thread Andre Masella
An intermediate function is the typical way to do it. You can also bind it as `uint8[]` array and pass `string.data`. If the inner function is marked `private` it won't appear in the generated ValaDoc. There's lots of this in `glib-2.0.vapi`. On 6 December 2013 07:38, rastersoft wrote: > Hi all

[Vala] passing string length in VAPI file

2013-12-06 Thread rastersoft
Hi all: I'm completing the XCB api for Vala, but I have a problem: there are several functions that receive a string and its length, like: xcb_intern_atom (xcb_connection_t *_conn_, uint8_t _only_if_exists_, uint16_t _name_len_, const char *_name_); Currently I'm doing it this way, by d