Re: g_file_hash parameter
Marko Anastasov <[email protected]>
| Newsgroups | gmane.comp.gnome.vfs.general |
|---|---|
| Message-ID | <1193429175.5803.1.camel@darkstar> |
On Fri, 2007-10-26 at 15:23 +0200, Alexander Larsson wrote: > 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. It is ok, I misjudged the problem. There has been something wrong with the function definition that we use, which I fixed (I'm making C++ bindings). Marko