Re: g_file_hash parameter
Alexander Larsson <[email protected]>
| Newsgroups | gmane.comp.gnome.vfs.general |
|---|---|
| Message-ID | <[email protected]> |
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.