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



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 executable and gets a pointer to that function.

GLib.Module.symbol (in gmodule-2.0.vapi).

http://valadoc.org/gmodule-2.0/GLib.Module.symbol.html


-Evan

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]