Added default cookie Close() implementation
Added trivial implementation for AttributeCookie::Close() and AttributeDirectoryCookie::Close() and removed the identical Close() implementations in derived classes.
This commit is contained in:
parent
ecf2e3d342
commit
a83fe53dce
@ -10,3 +10,10 @@
|
||||
AttributeCookie::~AttributeCookie()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
AttributeCookie::Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ class AttributeCookie {
|
||||
public:
|
||||
virtual ~AttributeCookie();
|
||||
|
||||
virtual status_t Close() = 0;
|
||||
virtual status_t Close();
|
||||
virtual status_t ReadAttribute(off_t offset, void* buffer,
|
||||
size_t* bufferSize) = 0;
|
||||
virtual status_t ReadAttributeStat(struct stat* st) = 0;
|
||||
|
@ -10,3 +10,10 @@
|
||||
AttributeDirectoryCookie::~AttributeDirectoryCookie()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
AttributeDirectoryCookie::Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ class AttributeDirectoryCookie {
|
||||
public:
|
||||
virtual ~AttributeDirectoryCookie();
|
||||
|
||||
virtual status_t Close() = 0;
|
||||
virtual status_t Close();
|
||||
virtual status_t Read(dev_t volumeID, ino_t nodeID,
|
||||
struct dirent* buffer, size_t bufferSize,
|
||||
uint32* _count) = 0;
|
||||
|
@ -7,13 +7,6 @@
|
||||
#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)
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
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);
|
||||
|
@ -100,13 +100,6 @@ UnpackingAttributeCookie::Open(PackageNode* packageNode, const char* name,
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
UnpackingAttributeCookie::Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
UnpackingAttributeCookie::ReadAttribute(off_t offset, void* buffer,
|
||||
size_t* bufferSize)
|
||||
|
@ -25,7 +25,6 @@ public:
|
||||
static status_t Open(PackageNode* packageNode, const char* name,
|
||||
int openMode, AttributeCookie*& _cookie);
|
||||
|
||||
virtual status_t Close();
|
||||
virtual status_t ReadAttribute(off_t offset, void* buffer,
|
||||
size_t* bufferSize);
|
||||
virtual status_t ReadAttributeStat(struct stat* st);
|
||||
|
@ -45,13 +45,6 @@ UnpackingAttributeDirectoryCookie::Open(PackageNode* packageNode,
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
UnpackingAttributeDirectoryCookie::Close()
|
||||
{
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
UnpackingAttributeDirectoryCookie::Read(dev_t volumeID, ino_t nodeID,
|
||||
struct dirent* buffer, size_t bufferSize, uint32* _count)
|
||||
|
@ -24,7 +24,6 @@ public:
|
||||
static status_t Open(PackageNode* packageNode,
|
||||
AttributeDirectoryCookie*& _cookie);
|
||||
|
||||
virtual status_t Close();
|
||||
virtual status_t Read(dev_t volumeID, ino_t nodeID,
|
||||
struct dirent* buffer, size_t bufferSize,
|
||||
uint32* _count);
|
||||
|
Loading…
Reference in New Issue
Block a user