EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Problem in errlogRemoveListener
From: "J. Lewis Muir" <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: [email protected]
Date: Fri, 28 Jun 2013 12:57:42 -0500
On 6/28/13 12:32 PM, Andrew Johnson wrote:
> Hi Benjamin,
> 
> On 2013-06-24 Benjamin Franksen wrote:
>> I challenge you to come up with a real
>> world example that needs anything besides my originally proposed
>>
>>         void errlogRemoveListener(listener *, void *);
>>
>> which should remove all listeners with matching function pointer and
>> private data pointer.
> 
> I accept your argument, thanks.  Here's what I'll change it to for the next 
> 3.15 release:
> 
>     int errlogRemoveListeners(errlogListener listener, void *pvt);
> 
> The return value is the number of listeners that were actually removed.

Hi, Andrew.

I don't get why one would care about removing all listeners that match.
 I can't think of a scenario where it would make sense to add more than
one listener/pvt pair.  To me, if someone does that, it's a bug.  I'd be
fine with the name still singular and it removing the first matching
listener/pvt pair:

  void errlogRemoveListener(listener *, void *);

Lewis

Replies:
Re: Problem in errlogRemoveListener Andrew Johnson
References:
Re: Problem in errlogRemoveListener Andrew Johnson
Re: Problem in errlogRemoveListener Andrew Johnson
Re: Problem in errlogRemoveListener Benjamin Franksen
Re: Problem in errlogRemoveListener Andrew Johnson

Navigate by Date:
Prev: Re: Problem in errlogRemoveListener Andrew Johnson
Next: Re: Problem in errlogRemoveListener Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problem in errlogRemoveListener Andrew Johnson
Next: Re: Problem in errlogRemoveListener Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·