From: <jc...@gm...> - 2015-02-06 12:31:51
|
Hello everyone, I have a boxed type with a constructor declared like this: /** * vips_array_int_new: * @array: (array length=n): array of int * @n: number of ints * * Allocate a new array of ints and copy @array into it. Free with * vips_area_unref(). * * See also: #VipsArea. * * Returns: (transfer full): A new #VipsArrayInt. */ VipsArrayInt * vips_array_int_new( const int *array, int n ) {} Code here: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/type.c#L649 Is it possible to create one of these things from Ruby? I'm getting a NotImplementedError if I do the obvious thing: irb(main):015:0> Vips::ArrayInt.new [1,2,3] NotImplementedError: TODO: Ruby -> GIArgument(array)[gint32] from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:278:in `invoke' from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:278:in `block (2 levels) in load_constructor_infos' from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:294:in `block in load_constructor_infos' from (irb):15:in `new' This is using git master. John |