vfs: check userland buffers before reading them.
[haiku.git] / src / kits / media / legacy / OldSubscriber.cpp
blob542c714dcbe723775a9c5094dca831fbb6724d13
1 /*
2 * Copyright 2002, Marcus Overhagen. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 // This is deprecated API that is not even implemented - no need to export
8 // it on a GCC4 build (BeIDE needs it to run, though, so it's worthwhile for
9 // GCC2)
10 #if __GNUC__ < 3
13 #include "OldSubscriber.h"
15 #include "debug.h"
18 /*************************************************************
19 * public BSubscriber
20 *************************************************************/
22 BSubscriber::BSubscriber(const char *name)
24 UNIMPLEMENTED();
28 BSubscriber::~BSubscriber()
30 UNIMPLEMENTED();
34 status_t
35 BSubscriber::Subscribe(BAbstractBufferStream *stream)
37 UNIMPLEMENTED();
39 return B_ERROR;
43 status_t
44 BSubscriber::Unsubscribe()
46 UNIMPLEMENTED();
48 return B_ERROR;
52 subscriber_id
53 BSubscriber::ID() const
55 UNIMPLEMENTED();
57 return 0;
61 const char *
62 BSubscriber::Name() const
64 UNIMPLEMENTED();
65 return NULL;
69 void
70 BSubscriber::SetTimeout(bigtime_t microseconds)
72 UNIMPLEMENTED();
76 bigtime_t
77 BSubscriber::Timeout() const
79 UNIMPLEMENTED();
81 return 0;
85 status_t
86 BSubscriber::EnterStream(subscriber_id neighbor,
87 bool before,
88 void *userData,
89 enter_stream_hook entryFunction,
90 exit_stream_hook exitFunction,
91 bool background)
93 UNIMPLEMENTED();
95 return B_ERROR;
99 status_t
100 BSubscriber::ExitStream(bool synch)
102 UNIMPLEMENTED();
104 return B_ERROR;
108 bool
109 BSubscriber::IsInStream() const
111 UNIMPLEMENTED();
113 return false;
116 /*************************************************************
117 * protected BSubscriber
118 *************************************************************/
120 status_t
121 BSubscriber::_ProcessLoop(void *arg)
123 UNIMPLEMENTED();
125 return B_ERROR;
129 status_t
130 BSubscriber::ProcessLoop()
132 UNIMPLEMENTED();
134 return B_ERROR;
138 BAbstractBufferStream *
139 BSubscriber::Stream() const
141 UNIMPLEMENTED();
142 return NULL;
145 /*************************************************************
146 * private BSubscriber
147 *************************************************************/
149 void
150 BSubscriber::_ReservedSubscriber1()
152 UNIMPLEMENTED();
156 void
157 BSubscriber::_ReservedSubscriber2()
159 UNIMPLEMENTED();
163 void
164 BSubscriber::_ReservedSubscriber3()
166 UNIMPLEMENTED();
170 #endif // __GNUC__ < 3