diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
commit | 01c1146276f7319843c357480c4374fe555f07c5 (patch) | |
tree | ca04e44b03b126de4ad3071e3e70df3982f9f174 /utils/libservice/include/libservice/service.hpp | |
parent | README updates (diff) | |
download | windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.tar.gz windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.zip |
utils: code style
Diffstat (limited to '')
-rw-r--r-- | utils/libservice/include/libservice/service.hpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/utils/libservice/include/libservice/service.hpp b/utils/libservice/include/libservice/service.hpp index d350c91..6e4d268 100644 --- a/utils/libservice/include/libservice/service.hpp +++ b/utils/libservice/include/libservice/service.hpp @@ -20,14 +20,18 @@ namespace libservice class Service { public: - static bool does_exist(const ServiceManager&, - const std::string& name); + static bool exists( + const ServiceManager&, + const std::string& name); - static Service open(const ServiceManager&, - const std::string& name); - static Service install(const ServiceManager&, - const std::string& name, - const std::string& bin_path); + static Service open( + const ServiceManager&, + const std::string& name); + + static Service install( + const ServiceManager&, + const std::string& name, + const std::string& bin_path); void start() const; void stop() const; @@ -47,15 +51,15 @@ namespace libservice void swap(Service& other) LIBSERVICE_NOEXCEPT { using std::swap; - swap(m_handle, other.m_handle); + swap(handle, other.handle); } private: - explicit Service(ServiceHandle h) - : m_handle(std::move(h)) + Service(ServiceHandle handle) + : handle(std::move(handle)) { } - ServiceHandle m_handle; + ServiceHandle handle; Service(const Service&) = delete; }; |