vfs: check userland buffers before reading them.
[haiku.git] / src / servers / registrar / PackageWatchingManager.h
blob9e07829d4d78a36c46480800a84a3a04bdee3478
1 /*
2 * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef PACKAGE_WATCHING_MANAGER_H
6 #define PACKAGE_WATCHING_MANAGER_H
9 #include "WatchingService.h"
12 class PackageWatchingManager {
13 public:
14 PackageWatchingManager();
15 ~PackageWatchingManager();
17 void HandleStartStopWatching(BMessage* request);
18 void NotifyWatchers(BMessage* message);
20 private:
21 status_t _AddWatcher(const BMessage* request);
22 status_t _RemoveWatcher(const BMessage* request);
24 private:
25 WatchingService fWatchingService;
29 #endif // PACKAGE_WATCHING_MANAGER_H