diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:39:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-01 15:39:00 +0300 |
commit | 2293d0875ee3bb27b923d51550ff4ba4bf2b9669 (patch) | |
tree | 275efbfacceae4c40d47b749c1563e761a65c03f /um/service/include/libservice/service_manager.hpp | |
parent | service: code style (diff) | |
download | windows7-drivers-2293d0875ee3bb27b923d51550ff4ba4bf2b9669.tar.gz windows7-drivers-2293d0875ee3bb27b923d51550ff4ba4bf2b9669.zip |
um: strip the 'lib' prefix from include/ dirs
Diffstat (limited to 'um/service/include/libservice/service_manager.hpp')
-rw-r--r-- | um/service/include/libservice/service_manager.hpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/um/service/include/libservice/service_manager.hpp b/um/service/include/libservice/service_manager.hpp deleted file mode 100644 index 3d4fe3a..0000000 --- a/um/service/include/libservice/service_manager.hpp +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com> -// This file is part of the "Windows 7 drivers" project. -// For details, see https://github.com/egor-tensin/windows7-drivers. -// Distributed under the MIT License. - -#pragma once - -#include "common.hpp" -#include "service_handle.hpp" - -#include <Windows.h> - -#include <utility> - -namespace libservice -{ - class ServiceManager - { - public: - static ServiceManager open(); - - ServiceManager(ServiceManager&& other) LIBSERVICE_NOEXCEPT - { - swap(other); - } - - ServiceManager& operator=(ServiceManager other) LIBSERVICE_NOEXCEPT - { - swap(other); - return *this; - } - - void swap(ServiceManager& other) LIBSERVICE_NOEXCEPT - { - using std::swap; - swap(handle, other.handle); - } - - operator SC_HANDLE() const - { - return handle; - } - - private: - ServiceManager(ServiceHandle handle) - : handle(std::move(handle)) - { } - - ServiceHandle handle; - - ServiceManager(const ServiceManager&) = delete; - }; - - inline void swap(ServiceManager& a, ServiceManager& b) LIBSERVICE_NOEXCEPT - { - a.swap(b); - } -} - -namespace std -{ - template <> - inline void swap<libservice::ServiceManager>( - libservice::ServiceManager& a, - libservice::ServiceManager& b) LIBSERVICE_NOEXCEPT - { - a.swap(b); - } -} |