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