From ad996ed934e5bede2bb681c899a7323e4a440bd2 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sat, 23 Sep 2017 11:49:01 +0300 Subject: [PATCH] Client: ISMBFileStore interface added --- SMBLibrary/Client/ISMBFileStore.cs | 15 +++++++++++++++ SMBLibrary/Client/SMB1FileStore.cs | 2 +- SMBLibrary/Client/SMB2FileStore.cs | 2 +- SMBLibrary/SMBLibrary.csproj | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 SMBLibrary/Client/ISMBFileStore.cs diff --git a/SMBLibrary/Client/ISMBFileStore.cs b/SMBLibrary/Client/ISMBFileStore.cs new file mode 100644 index 0000000..eb522ab --- /dev/null +++ b/SMBLibrary/Client/ISMBFileStore.cs @@ -0,0 +1,15 @@ +/* Copyright (C) 2017 Tal Aloni . All rights reserved. + * + * You can redistribute this program and/or modify it under the terms of + * the GNU Lesser Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later version. + */ +using System; + +namespace SMBLibrary.Client +{ + public interface ISMBFileStore : INTFileStore + { + NTStatus Disconnect(); + } +} diff --git a/SMBLibrary/Client/SMB1FileStore.cs b/SMBLibrary/Client/SMB1FileStore.cs index 4d248c9..0bc824a 100644 --- a/SMBLibrary/Client/SMB1FileStore.cs +++ b/SMBLibrary/Client/SMB1FileStore.cs @@ -11,7 +11,7 @@ using Utilities; namespace SMBLibrary.Client { - public class SMB1FileStore : INTFileStore + public class SMB1FileStore : ISMBFileStore { private SMB1Client m_client; private ushort m_treeID; diff --git a/SMBLibrary/Client/SMB2FileStore.cs b/SMBLibrary/Client/SMB2FileStore.cs index f5c2983..b393734 100644 --- a/SMBLibrary/Client/SMB2FileStore.cs +++ b/SMBLibrary/Client/SMB2FileStore.cs @@ -11,7 +11,7 @@ using Utilities; namespace SMBLibrary.Client { - public class SMB2FileStore : INTFileStore + public class SMB2FileStore : ISMBFileStore { private SMB2Client m_client; private uint m_treeID; diff --git a/SMBLibrary/SMBLibrary.csproj b/SMBLibrary/SMBLibrary.csproj index 6e36616..32eb11d 100644 --- a/SMBLibrary/SMBLibrary.csproj +++ b/SMBLibrary/SMBLibrary.csproj @@ -58,6 +58,7 @@ +