mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
a29d465ee8
Summary: With Facebook having been renamed Meta Platforms, we need to change the license headers. Reviewed By: fanzeyi Differential Revision: D33407812 fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
32 lines
731 B
C++
32 lines
731 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifndef _WIN32
|
|
#include "eden/fs/fuse/FuseDispatcher.h"
|
|
#include "eden/fs/nfs/NfsDispatcher.h"
|
|
#else
|
|
#include "eden/fs/prjfs/PrjfsDispatcher.h"
|
|
#endif
|
|
|
|
namespace facebook::eden {
|
|
|
|
class EdenMount;
|
|
|
|
class EdenDispatcherFactory {
|
|
public:
|
|
#ifndef _WIN32
|
|
static std::unique_ptr<FuseDispatcher> makeFuseDispatcher(EdenMount* mount);
|
|
static std::unique_ptr<NfsDispatcher> makeNfsDispatcher(EdenMount* mount);
|
|
#else
|
|
static std::unique_ptr<PrjfsDispatcher> makePrjfsDispatcher(EdenMount* mount);
|
|
#endif
|
|
};
|
|
|
|
} // namespace facebook::eden
|