vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / file_systems / packagefs / package_links / PackageLinksDirectory.h
blob0777fd5a76a6e536ce6f80f7fd0745be4a19eb84
1 /*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef PACKAGE_LINKS_DIRECTORY_H
6 #define PACKAGE_LINKS_DIRECTORY_H
9 #include "Directory.h"
12 class Package;
13 class PackageLinksListener;
16 class PackageLinksDirectory : public Directory {
17 public:
18 PackageLinksDirectory();
19 virtual ~PackageLinksDirectory();
21 virtual timespec ModifiedTime() const;
23 void SetListener(PackageLinksListener* listener)
24 { fListener = listener; }
26 status_t AddPackage(Package* package);
27 void RemovePackage(Package* package);
28 void UpdatePackageDependencies(Package* package);
30 private:
31 timespec fModifiedTime;
32 PackageLinksListener* fListener;
36 #endif // PACKAGE_LINKS_DIRECTORY_H