From 3338c77f526ac310386e325bcc1bc6aed46e1b7b Mon Sep 17 00:00:00 2001 From: shefty Date: Tue, 20 Jan 2009 08:05:18 +0000 Subject: [PATCH] winverbs.dll: remove unused files Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@1854 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/winverbs/user/wv_listen.cpp | 105 ------------------------- trunk/core/winverbs/user/wv_listen.h | 96 ---------------------- 2 files changed, 201 deletions(-) delete mode 100644 trunk/core/winverbs/user/wv_listen.cpp delete mode 100644 trunk/core/winverbs/user/wv_listen.h diff --git a/trunk/core/winverbs/user/wv_listen.cpp b/trunk/core/winverbs/user/wv_listen.cpp deleted file mode 100644 index 6ec7de46..00000000 --- a/trunk/core/winverbs/user/wv_listen.cpp +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (c) 2008 Intel Corporation. All rights reserved. - * - * This software is available to you under the OpenIB.org BSD license - * below: - * - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. - * - * - Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AWV - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#include "wv_memory.h" -#include "wv_listen.h" -#include "wv_ioctl.h" - -CWVListen::CWVListen(CWVProvider *pProvider) -{ - pProvider->AddRef(); - m_pProvider = pProvider; - m_hFile = pProvider->m_hFile; -} - -CWVListen::~CWVListen() -{ - m_pProvider->Release(); -} - -STDMETHODIMP CWVListen:: -QueryInterface(REFIID riid, LPVOID FAR* ppvObj) -{ - if (riid != IID_IUnknown && riid != IID_IWVListen) { - *ppvObj = NULL; - return E_NOINTERFACE; - } - - *ppvObj = this; - AddRef(); - return WV_SUCCESS; -} - -STDMETHODIMP_(ULONG) CWVListen:: -AddRef(void) -{ - return CWVBase::AddRef(); -} - -STDMETHODIMP_(ULONG) CWVListen:: -Release(void) -{ - return CWVBase::Release(); -} - -STDMETHODIMP CWVListen:: -CancelOverlappedRequests(void) -{ - DWORD bytes; - - return WvDeviceIoControl(m_hFile, WV_IOCTL_LISTEN_CANCEL, &m_Id, sizeof m_Id, - NULL, 0, &bytes, NULL) ? - WV_SUCCESS : HRESULT_FROM_WIN32(GetLastError()); -} - -STDMETHODIMP CWVListen:: -GetOverlappedResult(OVERLAPPED *pOverlapped, - DWORD *pNumberOfBytesTransferred, BOOL bWait) -{ - return ::GetOverlappedResult(m_hFile, pOverlapped, - pNumberOfBytesTransferred, bWait); -} - -STDMETHODIMP CWVListen:: -Listen(const struct sockaddr* pAddress, SIZE_T Backlog) -{ - UNREFERENCED_PARAMETER(pAddress); - UNREFERENCED_PARAMETER(Backlog); - - return E_NOTIMPL; -} - -STDMETHODIMP CWVListen:: -GetRequest(IWVEndpoint* pEndpoint, OVERLAPPED* pOverlapped) -{ - UNREFERENCED_PARAMETER(pEndpoint); - UNREFERENCED_PARAMETER(pOverlapped); - - return E_NOTIMPL; -} diff --git a/trunk/core/winverbs/user/wv_listen.h b/trunk/core/winverbs/user/wv_listen.h deleted file mode 100644 index 55bcc55b..00000000 --- a/trunk/core/winverbs/user/wv_listen.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2008 Intel Corporation. All rights reserved. - * - * This software is available to you under the OpenIB.org BSD license - * below: - * - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. - * - * - Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AWV - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#pragma once - -#ifndef _WV_LISTEN_H_ -#define _WV_LISTEN_H_ - -#include -#include "wv_provider.h" -#include "wv_base.h" - -class CWVListen : IWVListen, public CWVBase -{ -public: - // IUnknown methods - STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj); - STDMETHODIMP_(ULONG) AddRef(); - STDMETHODIMP_(ULONG) Release(); - - // IWVOverlapped methods - STDMETHODIMP CancelOverlappedRequests(); - STDMETHODIMP GetOverlappedResult(OVERLAPPED *pOverlapped, - DWORD *pNumberOfBytesTransferred, BOOL bWait); - - // IWVListen methods - STDMETHODIMP GetRequest(IWVEndpoint* pEndpoint, OVERLAPPED* pOverlapped); - - STDMETHODIMP Listen(const struct sockaddr* pAddress, SIZE_T Backlog); - - CWVListen(CWVProvider *pProvider); - ~CWVListen(); - void Delete() {delete this;} - static STDMETHODIMP - CreateInstance(CWVProvider *pProvider, const struct sockaddr* pAddress, - SIZE_T Backlog, IWVListen** ppListen) - { - HRESULT hr; - CWVListen *listener; - - listener = new CWVListen(pProvider); - if (listener == NULL) { - hr = WV_NO_MEMORY; - goto err1; - } - - hr = listener->Init(); - if (FAILED(hr)) { - goto err2; - } - - hr = listener->Listen(pAddress, Backlog); - if (FAILED(hr)) { - goto err2; - } - - *ppListen = listener; - return WV_SUCCESS; - - err2: - listener->Release(); - err1: - *ppListen = NULL; - return hr; - } - - CWVProvider *m_pProvider; -}; - -#endif // _WV_LISTEN_H_ \ No newline at end of file -- 2.41.0