Re: Add a mountlist iterator (round 2)

2017-04-09 Thread Taylor R Campbell
> Date: Sun, 9 Apr 2017 18:47:25 +0200 > From: "J. Hannken-Illjes" > > > On 6. Apr 2017, at 11:44, J. Hannken-Illjes wrote: > > Good hint. Prepared a partial implementation of > > > > int > > mountlist_iterate(int (*cb)(struct mount *, void

Re: Add a mountlist iterator (round 2)

2017-04-09 Thread J. Hannken-Illjes
> On 6. Apr 2017, at 11:44, J. Hannken-Illjes wrote: > >> >> On 5. Apr 2017, at 05:14, Chuck Silvers wrote: >> >> have you considered a callback-based interface where the loop >> is inside the iteration API rather than in the caller? >> the