Re: [gamin] FAMCancelMonitor - definition should contain const



[...]

 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]