mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
abfdda5447
Summary: Moved the current FsChannel implementation in to PrjfsChannel and converted the FsChannel.h into an abstract class. Created a TestFsChannel class for testing. Reviewed By: simpkins Differential Revision: D18440401 fbshipit-source-id: 30d6742cd18b4b76b664e3af7ed1a528cf876046
27 lines
532 B
C++
27 lines
532 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
class FsChannel {
|
|
public:
|
|
FsChannel(const FsChannel&) = delete;
|
|
FsChannel& operator=(const FsChannel&) = delete;
|
|
|
|
FsChannel(){};
|
|
virtual ~FsChannel() = default;
|
|
virtual void start() = 0;
|
|
virtual void stop() = 0;
|
|
};
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|
|
//////////////////////////
|