vfs: check userland buffers before reading them.
[haiku.git] / src / kits / media / TimeSourceObject.h
blob5cf3915387e89a61bcb2f7658c1e2068363a8b87
1 /*
2 * Copyright 2002 Marcus Overhagen. All Rights Reserved.
3 * This file may be used under the terms of the MIT License.
4 */
5 #ifndef TIME_SOURCE_OBJECT_H
6 #define TIME_SOURCE_OBJECT_H
9 #include <TimeSource.h>
11 #include <MediaMisc.h>
14 namespace BPrivate {
15 namespace media {
18 class TimeSourceObject : public BTimeSource {
19 public:
20 TimeSourceObject(const media_node& node);
22 protected:
23 virtual status_t TimeSourceOp(const time_source_op_info& op,
24 void* _reserved);
26 virtual BMediaAddOn* AddOn(int32* _id) const;
28 // override from BMediaNode
29 virtual status_t DeleteHook(BMediaNode* node);
33 } // namespace media
34 } // namespace BPrivate
37 using namespace BPrivate::media;
40 #endif // TIME_SOURCE_OBJECT_H