Inlined some functions
This commit is contained in:
parent
58c2f64fb0
commit
cb1dae7df0
|
@ -1,3 +1,3 @@
|
|||
add_library(fspp_impl FilesystemImpl.cpp FuseOpenFileList.cpp IdList.cpp FuseErrnoException.cpp)
|
||||
add_library(fspp_impl FilesystemImpl.cpp)
|
||||
|
||||
target_link_libraries(fspp_impl boost_filesystem boost_system)
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
#include "FuseErrnoException.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
||||
using std::string;
|
||||
using std::runtime_error;
|
||||
|
||||
namespace fspp {
|
||||
|
||||
FuseErrnoException::FuseErrnoException(int errno_)
|
||||
:runtime_error(strerror(errno_)), _errno(errno_) {
|
||||
assert(_errno != 0);
|
||||
}
|
||||
|
||||
FuseErrnoException::~FuseErrnoException() {
|
||||
}
|
||||
|
||||
int FuseErrnoException::getErrno() const {
|
||||
return _errno;
|
||||
}
|
||||
|
||||
} /* namespace fspp */
|
|
@ -23,6 +23,18 @@ inline void CHECK_RETVAL(int retval) {
|
|||
}
|
||||
}
|
||||
|
||||
inline FuseErrnoException::FuseErrnoException(int errno_)
|
||||
:runtime_error(strerror(errno_)), _errno(errno_) {
|
||||
assert(_errno != 0);
|
||||
}
|
||||
|
||||
inline FuseErrnoException::~FuseErrnoException() {
|
||||
}
|
||||
|
||||
inline int FuseErrnoException::getErrno() const {
|
||||
return _errno;
|
||||
}
|
||||
|
||||
} /* namespace fspp */
|
||||
|
||||
#endif /* FSPP_FUSE_FUSEERRNOEXCEPTION_H_ */
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#include "FuseOpenFileList.h"
|
||||
|
||||
using namespace fspp;
|
||||
|
||||
FuseOpenFileList::~FuseOpenFileList() {
|
||||
}
|
|
@ -28,6 +28,9 @@ inline FuseOpenFileList::FuseOpenFileList()
|
|||
:_open_files() {
|
||||
}
|
||||
|
||||
inline FuseOpenFileList::~FuseOpenFileList() {
|
||||
}
|
||||
|
||||
inline int FuseOpenFileList::open(const File &file, int flags) {
|
||||
return _open_files.add(file.open(flags));
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "IdList.h"
|
Loading…
Reference in New Issue