* Made our struct stat POSIX compliant again -- the time_t fields have been
replaced by timespec fields. Via macros the structure is still source compatible with the old one. * Introduced header <compat/sys/stat.h> that defines the old stat structure (as stat_beos) and conversion functions * Introduced versions for [l,f]stat(). * Added symbol versions for BDirectory::GetStatFor() for sake of binary compatibility. * BStatable::GetStat(): Renamed the old method, changed its parameter to stat_beos*, and and made it private. Added a new version (using up a reserved vtable slot). It remains source and binary compatible. * BRefFilter::Filter(): Changed the struct stat* parameter to struct stat_beos* for sake of binary compatibility. This breaks source compatibility, though, which we can't help, since the class doesn't have reserved vtable slots. * Fixed several issues with the stat structure change, mostly adjusted uses of BRefFilter. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30830 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -14,6 +14,7 @@ class BMessage;
|
||||
class BMessenger;
|
||||
class BWindow;
|
||||
struct stat;
|
||||
struct stat_beos;
|
||||
|
||||
|
||||
class BRefFilter {
|
||||
@@ -22,7 +23,7 @@ class BRefFilter {
|
||||
virtual ~BRefFilter() {};
|
||||
#endif
|
||||
virtual bool Filter(const entry_ref* ref, BNode* node,
|
||||
struct stat* stat, const char* mimeType) = 0;
|
||||
struct stat_beos* stat, const char* mimeType) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user