mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
1c84f3f115
Summary: It's common for code to use InodeNumber without needing to include the main FUSE headers or vice versa. Split them into two separate headers. Reviewed By: strager Differential Revision: D13979868 fbshipit-source-id: c5eeb6a3697bb538729a403434dc4f0f7408cda0
32 lines
791 B
C++
32 lines
791 B
C++
/*
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
#include "eden/fs/fuse/InodeNumber.h"
|
|
|
|
#include <folly/Conv.h>
|
|
#include <ostream>
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
|
|
std::ostream& operator<<(std::ostream& os, InodeNumber ino) {
|
|
return os << ino.getRawValue();
|
|
}
|
|
|
|
void toAppend(InodeNumber ino, std::string* result) {
|
|
folly::toAppend(ino.getRawValue(), result);
|
|
}
|
|
|
|
void toAppend(InodeNumber ino, folly::fbstring* result) {
|
|
folly::toAppend(ino.getRawValue(), result);
|
|
}
|
|
|
|
} // namespace eden
|
|
} // namespace facebook
|