diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-01-18 16:43:52 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-01-18 16:43:52 -0600 |
| commit | 14827ae832d04e8df0058bb4a580de2ec84cb2bd (patch) | |
| tree | 0ca8cc843af8401c5e396a198d1cc4e6b1fe6bca /src/slskd/Shares/IShareService.cs | |
| parent | deef26c4a219b4197ca988515d886643c2ff81e8 (diff) | |
| download | slskd-14827ae832d04e8df0058bb4a580de2ec84cb2bd.tar.gz | |
add the ability to pass a limit to share search
Diffstat (limited to 'src/slskd/Shares/IShareService.cs')
| -rw-r--r-- | src/slskd/Shares/IShareService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs index 7db9671b..3b379c98 100644 --- a/src/slskd/Shares/IShareService.cs +++ b/src/slskd/Shares/IShareService.cs @@ -109,8 +109,9 @@ namespace slskd.Shares /// Searches the cache for the specified <paramref name="query"/> and returns the matching files. /// </summary> /// <param name="query">The query for which to search.</param> + /// <param name="limit">An optional row limit.</param> /// <returns>The matching files.</returns> - Task<IEnumerable<File>> SearchAsync(SearchQuery query); + Task<IEnumerable<File>> SearchAsync(SearchQuery query, int? limit = null); /// <summary> /// Cancels the currently running scan on the local host, if one is running. |
