Re: [Vala] VAPI bindings for external lib
On 17/11/2014 14:28, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados, libcephfs libraries from vala. Ehem, I can do it by just linking but figuring out what's the best way to do it. I suppose that creating a binding is the best. I saw some tutorials but all require that library already uses GObject system that's not the case. So, should I create a wrapping object lib, and then generate bindings from there? Or should I do another way? I'm thinking about just adding dep and call it from vala like c. But don't know what's the best way to proceed. If those libs are C, just write the .vapi by hand. Use compact classes and structs, unless they have reference-counted objects. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] VAPI bindings for external lib
On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados, libcephfs libraries from vala. Ehem, I can do it by just linking but figuring out what's the best way to do it. I suppose that creating a binding is the best. I saw some tutorials but all require that library already uses GObject system that's not the case. So, should I create a wrapping object lib, and then generate bindings from there? Or should I do another way? I'm thinking about just adding dep and call it from vala like c. But don't know what's the best way to proceed. Best regards There's a lot of documentation on this here: https://wiki.gnome.org/Projects/Vala/LegacyBindings signature.asc Description: This is a digitally signed message part ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] VAPI bindings for external lib
Hi, perfect! Thank you for fast response. Just one question. Is there any vapi repos to upload resulting vapi. It would be nice to have something like nexus for maven but in this case for vapis. Best regards, El 17/11/14 a las 14:41, Luca Bruno escribió: On 17/11/2014 14:28, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados, libcephfs libraries from vala. Ehem, I can do it by just linking but figuring out what's the best way to do it. I suppose that creating a binding is the best. I saw some tutorials but all require that library already uses GObject system that's not the case. So, should I create a wrapping object lib, and then generate bindings from there? Or should I do another way? I'm thinking about just adding dep and call it from vala like c. But don't know what's the best way to proceed. If those libs are C, just write the .vapi by hand. Use compact classes and structs, unless they have reference-counted objects. ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] VAPI bindings for external lib
Hi Michael, I missed this one. Thank you. El 17/11/14 a las 16:07, Michael Catanzaro escribió: On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados, libcephfs libraries from vala. Ehem, I can do it by just linking but figuring out what's the best way to do it. I suppose that creating a binding is the best. I saw some tutorials but all require that library already uses GObject system that's not the case. So, should I create a wrapping object lib, and then generate bindings from there? Or should I do another way? I'm thinking about just adding dep and call it from vala like c. But don't know what's the best way to proceed. Best regards There's a lot of documentation on this here: https://wiki.gnome.org/Projects/Vala/LegacyBindings ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] VAPI bindings for external lib
On 17/11/2014 17:46, Gonzalo Aguilar Delgado wrote: Hi, perfect! Thank you for fast response. Just one question. Is there any vapi repos to upload resulting vapi. It would be nice to have something like nexus for maven but in this case for vapis. This is the official unofficial list of extra vapis :) https://github.com/nemequ/vala-extra-vapis . It's unofficial in the sense that it's not maintained in the vala tree, it's official in the sense that as Vala developers we suggest using it. Should be the perfect place for sharing your vapi. Best regards, ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list