aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-14 08:57:18 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-14 08:57:18 -0500
commit4d69426a19ffff519368ec2b75e8634fdd23d861 (patch)
treed2de40606e3c3fa901effe2d543adb20974b93c4 /src/slskd/Shares/IShareService.cs
parentb56a6650e95b3964d22d0af8c4c44b74d2800c29 (diff)
parent593308d4e786cd569e3a683f5b02b8f13aa39b23 (diff)
downloadslskd-4d69426a19ffff519368ec2b75e8634fdd23d861.tar.gz
Merge remote-tracking branch 'origin/master' into agent
Diffstat (limited to 'src/slskd/Shares/IShareService.cs')
-rw-r--r--src/slskd/Shares/IShareService.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs
index 5144ada8..90fa115d 100644
--- a/src/slskd/Shares/IShareService.cs
+++ b/src/slskd/Shares/IShareService.cs
@@ -27,14 +27,20 @@ namespace slskd.Shares
public interface IShareService
{
/// <summary>
- /// Gets the list of configured shares.
+ /// Gets the list of share hosts.
/// </summary>
- IReadOnlyList<Share> Shares { get; }
+ IReadOnlyList<Host> Hosts { get; }
/// <summary>
/// Gets the state monitor for the service.
/// </summary>
- public IStateMonitor<ShareState> StateMonitor { get; }
+ IStateMonitor<ShareState> StateMonitor { get; }
+
+ /// <summary>
+ /// Adds a new, or updates an existing, share host.
+ /// </summary>
+ /// <param name="host">The host to add or update.</param>
+ void AddOrUpdateHost(Host host);
/// <summary>
/// Backs contents of the cache up to the specified file.
@@ -79,7 +85,7 @@ namespace slskd.Shares
Task<IEnumerable<File>> SearchAsync(SearchQuery query);
/// <summary>
- /// Scans the configured shares.
+ /// Scans the configured shares on the local host.
/// </summary>
/// <returns>The operation context.</returns>
/// <exception cref="ShareScanInProgressException">Thrown when a scan is already in progress.</exception>
@@ -93,7 +99,7 @@ namespace slskd.Shares
Task<(int Directories, int Files)> SummarizeShareAsync(Share share);
/// <summary>
- /// Cancels the currently running scan, if one is running.
+ /// Cancels the currently running scan on the local host, if one is running.
/// </summary>
/// <returns>A value indicating whether a scan was cancelled.</returns>
bool TryCancelScan();