Re: g_file_hash parameter
- From: Marko Anastasov <marko marko anastasov name>
- To: Alexander Larsson <alexl redhat com>
- Cc: gnome-vfs-list gnome org
- Subject: Re: g_file_hash parameter
- Date: Fri, 26 Oct 2007 22:06:15 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]