Re: [gamin] FAMCancelMonitor - definition should contain const
- From: Michael Tautschnig <michael tautschnig zt-consulting com>
- To: Daniel Veillard <veillard redhat com>
- Cc: gamin-list gnome org
- Subject: Re: [gamin] FAMCancelMonitor - definition should contain const
- Date: Wed, 24 Nov 2004 22:58:56 +0100 (CET)
[...]
the fam.h header from the original SGI distribution states:
int FAMCancelMonitor(FAMConnection *fc, const FAMRequest *fr);
and
This routine will free the FAMRequest structure that is passed in.
So yes it seems you are right, but this just violates the API as described !
What API would it violate? gamin's own?
I note that libgamin does *not* free the structure passed because it did
break FAM compatibility .... And should not modify it either, so technically
speaking this is right.
Doesn't this kind of definition break FAM-compatibility? I don't really
get the point, why this has not been defined "const" - actually this
breaks applications such as "fileschanged" ...
Thanks,
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]