diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-13 09:36:14 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-13 09:36:14 -0600 |
| commit | 381b5480255092e14de1054229a9d2f5285206a5 (patch) | |
| tree | 087e5f69cd8dfbfc88ffba745dc638bc18bc5115 /src | |
| parent | 9350666ac9d1e2ff0b3a7588cefa2a4fe28683ca (diff) | |
| download | slskd-381b5480255092e14de1054229a9d2f5285206a5.tar.gz | |
move I/SharedFileCache to common
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/ISharedFileCache.cs | 34 | ||||
| -rw-r--r-- | src/slskd/Common/SharedFileCache.cs (renamed from src/slskd/SharedFileCache.cs) | 23 | ||||
| -rw-r--r-- | src/slskd/ISharedFileCache.cs | 17 |
3 files changed, 54 insertions, 20 deletions
diff --git a/src/slskd/Common/ISharedFileCache.cs b/src/slskd/Common/ISharedFileCache.cs new file mode 100644 index 00000000..53070777 --- /dev/null +++ b/src/slskd/Common/ISharedFileCache.cs @@ -0,0 +1,34 @@ +// <copyright file="ISharedFileCache.cs" company="slskd Team"> +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// </copyright> + +namespace slskd +{ + using System; + using System.Collections.Generic; + using Soulseek; + + internal interface ISharedFileCache + { + string Directory { get; } + DateTime? LastFill { get; } + long TTL { get; } + + void Fill(); + + IEnumerable<Soulseek.File> Search(SearchQuery query); + } +}
\ No newline at end of file diff --git a/src/slskd/SharedFileCache.cs b/src/slskd/Common/SharedFileCache.cs index ba88b31a..208eab24 100644 --- a/src/slskd/SharedFileCache.cs +++ b/src/slskd/Common/SharedFileCache.cs @@ -1,13 +1,30 @@ -namespace slskd +// <copyright file="SharedFileCache.cs" company="slskd Team"> +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// </copyright> + +namespace slskd { - using Microsoft.Data.Sqlite; - using Soulseek; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading; + using Microsoft.Data.Sqlite; + using Soulseek; /// <summary> /// Caches shared files. diff --git a/src/slskd/ISharedFileCache.cs b/src/slskd/ISharedFileCache.cs deleted file mode 100644 index f3c75f71..00000000 --- a/src/slskd/ISharedFileCache.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace slskd -{ - using Soulseek; - using System; - using System.Collections.Generic; - - internal interface ISharedFileCache - { - string Directory { get; } - DateTime? LastFill { get; } - long TTL { get; } - - void Fill(); - - IEnumerable<Soulseek.File> Search(SearchQuery query); - } -}
\ No newline at end of file |
