diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-11 13:08:06 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-11 13:27:49 +0200 |
| commit | 59e17afe291f9df52d2334b92e88a889c2fe8f6a (patch) | |
| tree | add5674ebd1b8441cacab11afdd1a6fabb6fe79a /handler.c | |
| parent | 48b171335c213091cdf682c98ad784dc5c8456da (diff) | |
| download | slcl-59e17afe291f9df52d2334b92e88a889c2fe8f6a.tar.gz | |
cftw: Allow user callback to stop recursive search
So far, cftw would search through all directories and files recursively,
until all objects are processed. However, it is interesting for the user
callback to be able to stop this process under specific circumstances.
Now, cftw will pass a pointer to a bool, initialised to false by
default, that can be optionally assigned to true by the user
callback.
Future commits will make use of this feature. For example, this will be
used to limit the number of search results when a user enters a search
term that is too generic and would otherwise generate a large amount of
search results.
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions
