Re: GHashTable with function pointers as values

2014-08-22 Thread Emmanuele Bassi
hi; On 22 August 2014 17:10, Iñigo Martínez wrote: > I am trying to figure out the best way to use function pointers as > values in a GHashTable. My idea is to call different functions based > on different keys (strings). > > Looking at the API, this looks impossible, as the values are gpointers

GHashTable with function pointers as values

2014-08-22 Thread Iñigo Martínez
Hi, I am trying to figure out the best way to use function pointers as values in a GHashTable. My idea is to call different functions based on different keys (strings). Looking at the API, this looks impossible, as the values are gpointers and not function pointers. I'm thinking to wrap the func