Re: [Vala] Get pointer to a function from a string with its name

2014-08-13 Thread rastersoft
Oh! Good! Thanks El 13/08/14 a las #4, Evan Nemerson escribió: On Wed, 2014-08-13 at 22:30 +0200, rastersoft wrote: Hi Evan: Thanks, but that isn't what I need. That is only for loadable modules, No it isn't. Pass null as the first argument to GLib.Module.open. From the documentation:

Re: [Vala] Get pointer to a function from a string with its name

2014-08-13 Thread Evan Nemerson
On Wed, 2014-08-13 at 22:30 +0200, rastersoft wrote: > Hi Evan: > > Thanks, but that isn't what I need. That is only for loadable modules, No it isn't. Pass null as the first argument to GLib.Module.open. From the documentation: the name of the file containing the module, or NULL to o

Re: [Vala] Get pointer to a function from a string with its name

2014-08-13 Thread rastersoft
Hi Evan: Thanks, but that isn't what I need. That is only for loadable modules, and I need to get the pointer to a function of the currently running executable. Like Gtk.Builder. El 13/08/14 a las #4, Evan Nemerson escribió: On Wed, 2014-08-13 at 18:56 +0200, rastersoft wrote: Hi all: I'm

Re: [Vala] Get pointer to a function from a string with its name

2014-08-13 Thread Evan Nemerson
On Wed, 2014-08-13 at 18:56 +0200, rastersoft wrote: > Hi all: > > I'm developing a proof of concept and I need to get a pointer to a > function given its name in a string. I want to do something like > Gtk.Builder, where you store in the XML a callback name, and in runtime > it search the exec

[Vala] Get pointer to a function from a string with its name

2014-08-13 Thread rastersoft
Hi all: I'm developing a proof of concept and I need to get a pointer to a function given its name in a string. I want to do something like Gtk.Builder, where you store in the XML a callback name, and in runtime it search the executable and gets a pointer to that function. In C it seems that