sapling/eden/fs/fuse/InodeNumber.cpp
Chad Austin 1c84f3f115 split InodeNumber into its own file
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
2019-02-08 16:21:35 -08:00

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