Re: [Vala] A few newbie's questions

2011-02-05 Thread Giulio Paci
Hi! Il 04/02/2011 01:16, Sandino Flores Moreno ha scritto: To use PACKAGE and VERSION declare them as extern in your vala source code. You are a life saver! :-) I was not aware of the "extern" keyword in Vala. Sorry, I pasted the man page of gets but FileStream.gets is the wrapper of fge

Re: [Vala] A few newbie's questions

2011-02-03 Thread Giulio Paci
Hi Sandino, thank you for your very quick reply, Il 03/02/2011 23:23, Sandino Flores Moreno ha scritto: > On Thu, Feb 3, 2011 at 3:27 PM, Giulio Paci wrote: >> 1) I tried to create a gstreamer plugin following the Gstreamer Plugin >> Writer's Guide >> (http://gstreamer.freedesktop.org/data

Re: [Vala] A few newbie's questions

2011-02-03 Thread Sandino Flores Moreno
To use PACKAGE and VERSION declare them as extern in your vala source code. Sorry, I pasted the man page of gets but FileStream.gets is the wrapper of fgets. char *fgets(char *s, int size, FILE *stream); fgets() reads in at most one less than size characters from stream and stores

Re: [Vala] A few newbie's questions

2011-02-03 Thread Sandino Flores Moreno
Regarding question 1: == Check the next source code: https://github.com/tigrux/gst-plugin-omap4videodecbin/blob/master/gst/gstomap4videodecbin.vala There you can see a line like these: public const Gst.PluginDesc gst_plugin_desc = { ... } That's what you are missing in your gstre

[Vala] A few newbie's questions

2011-02-03 Thread Giulio Paci
Hi to all! A few days ago I discovered vala and decided to give it a try, as it seems to have almost all the features that I wanted (C code generation, non-object oriented code allowed, easy utf-8 string manipulation, regexp support, glib integration, easy access to database, fine tuning suppor