Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Vapi file:
- public async bool prepare_async ([CCode (array_length = false, array_null_terminated = true)] GLib.Quark[]? features) throws GLib.Error;
- //How I try to use it:
- GLib.Quark q[] = new GLib.Quark[1];
- q[0] = GLib.Quark.from_string(IFACE_CLIENT_INTERFACE_REQUESTS);
- con.prepare_async.begin(null, (obj, result) => {
- //...
- });
- //Error:
- main.vala.c: In function ‘__lambda4_’:
- main.vala.c:413:9: error: array size missing in ‘q’
- /home/baedert/Code/Vala/tp-glib/src/main.vala:55:4: error: incompatible types when assigning to type ‘GQuark[1]’ from type ‘GQuark *’
- /home/baedert/Code/Vala/tp-glib/src/main.vala:45:4: error: incompatible types when assigning to type ‘GQuark[1]’ from type ‘void *’
- error: cc exited with status 256
- Compilation failed: 1 error(s), 0 warning(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement