Re: g_file_hash parameter



On Mon, 2007-10-22 at 23:20 +0200, Marko Anastasov wrote:
> Hi,
> A minor note/question:
> I noticed that GFile interface defines the hash function
> to take a GFile* as a parameter (as usual), but g_file_hash()
> takes a gconstpointer? For easier wrapping, could it be GFile*?

Hmmm. It is gconstpointer so that apps don't have to cast it when
passing it to g_hash_table_new, which is what most users will do. At
least in C. How big a problem is this for bindings? Its similar to what
e.g. g_str_hash does.




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