Move EmptyAttributeDirectoryCookie to own files
This commit is contained in:
parent
7e57d12523
commit
a2fc40be04
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "EmptyAttributeDirectoryCookie.h"
|
||||
|
||||
|
||||
status_t
|
||||
EmptyAttributeDirectoryCookie::Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
EmptyAttributeDirectoryCookie::Read(dev_t volumeID, ino_t nodeID,
|
||||
struct dirent* buffer, size_t bufferSize, uint32* _count)
|
||||
{
|
||||
*_count = 0;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
EmptyAttributeDirectoryCookie::Rewind()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef EMPTY_ATTRIBUTE_DIRECTORY_COOKIE_H
|
||||
#define EMPTY_ATTRIBUTE_DIRECTORY_COOKIE_H
|
||||
|
||||
|
||||
#include "AttributeDirectoryCookie.h"
|
||||
|
||||
|
||||
class EmptyAttributeDirectoryCookie : public AttributeDirectoryCookie {
|
||||
public:
|
||||
virtual status_t Close();
|
||||
virtual status_t Read(dev_t volumeID, ino_t nodeID,
|
||||
struct dirent* buffer, size_t bufferSize,
|
||||
uint32* _count);
|
||||
virtual status_t Rewind();
|
||||
};
|
||||
|
||||
|
||||
#endif // EMPTY_ATTRIBUTE_DIRECTORY_COOKIE_H
|
@ -13,6 +13,7 @@ HAIKU_PACKAGE_FS_SOURCES =
|
||||
DebugSupport.cpp
|
||||
Dependency.cpp
|
||||
Directory.cpp
|
||||
EmptyAttributeDirectoryCookie.cpp
|
||||
GlobalFactory.cpp
|
||||
kernel_interface.cpp
|
||||
Node.cpp
|
||||
|
@ -8,36 +8,10 @@
|
||||
|
||||
#include <AutoDeleter.h>
|
||||
|
||||
#include "AttributeDirectoryCookie.h"
|
||||
#include "EmptyAttributeDirectoryCookie.h"
|
||||
#include "DebugSupport.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
class EmptyAttributeDirectoryCookie : public AttributeDirectoryCookie {
|
||||
public:
|
||||
virtual status_t Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
virtual status_t Read(dev_t volumeID, ino_t nodeID, struct dirent* buffer,
|
||||
size_t bufferSize, uint32* _count)
|
||||
{
|
||||
*_count = 0;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
virtual status_t Rewind()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
} // unnamed namespace
|
||||
|
||||
|
||||
PackageLinksDirectory::PackageLinksDirectory()
|
||||
:
|
||||
Directory(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user