rss resume / curriculum vitae linkedin linkedin gitlab github twitter mastodon instagram
Emulating reflection in C
Feb 25, 2007

Have your ever wonder how to emulate C#/Java Reflection in C Shared Objects? If you are using GObject to build your applications and/or your libraries, then you won't have any problem to do so. I hope having more free time on next weeks to allow me write a simple example to do so. Basically you need to define an interface to dlopen your Shared Objects, then call an GInterface to initialize your custom GType and then other GInterface to get GTypes defined in your shared obejct, then by using g_type_from_name () you will be able to "play" with your objects.

Back to posts