vfs: check userland buffers before reading them.
[haiku.git] / src / kits / media / legacy / OldBufferStreamManager.cpp
blob96d6c1fff73bbe37c7374aa4d7c3c6be7fe4a8ed
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 "OldBufferStreamManager.h"
15 #include <debug.h>
18 /*************************************************************
19 * public BBufferStreamManager
20 *************************************************************/
22 BBufferStreamManager::BBufferStreamManager(char *name)
24 UNIMPLEMENTED();
28 BBufferStreamManager::~BBufferStreamManager()
30 UNIMPLEMENTED();
34 char *
35 BBufferStreamManager::Name() const
37 UNIMPLEMENTED();
38 return NULL;
42 BBufferStream *
43 BBufferStreamManager::Stream() const
45 UNIMPLEMENTED();
46 return NULL;
50 int32
51 BBufferStreamManager::BufferCount() const
53 UNIMPLEMENTED();
55 return 0;
59 void
60 BBufferStreamManager::SetBufferCount(int32 count)
62 UNIMPLEMENTED();
66 int32
67 BBufferStreamManager::BufferSize() const
69 UNIMPLEMENTED();
71 return 0;
75 void
76 BBufferStreamManager::SetBufferSize(int32 bytes)
78 UNIMPLEMENTED();
82 bigtime_t
83 BBufferStreamManager::BufferDelay() const
85 UNIMPLEMENTED();
87 return 0;
91 void
92 BBufferStreamManager::SetBufferDelay(bigtime_t usecs)
94 UNIMPLEMENTED();
98 bigtime_t
99 BBufferStreamManager::Timeout() const
101 UNIMPLEMENTED();
103 return 0;
107 void
108 BBufferStreamManager::SetTimeout(bigtime_t usecs)
110 UNIMPLEMENTED();
114 stream_state
115 BBufferStreamManager::Start()
117 UNIMPLEMENTED();
119 return B_IDLE;
123 stream_state
124 BBufferStreamManager::Stop()
126 UNIMPLEMENTED();
128 return B_IDLE;
132 stream_state
133 BBufferStreamManager::Abort()
135 UNIMPLEMENTED();
137 return B_IDLE;
141 stream_state
142 BBufferStreamManager::State() const
144 UNIMPLEMENTED();
146 return B_IDLE;
150 port_id
151 BBufferStreamManager::NotificationPort() const
153 UNIMPLEMENTED();
155 return 0;
159 void
160 BBufferStreamManager::SetNotificationPort(port_id port)
162 UNIMPLEMENTED();
166 bool
167 BBufferStreamManager::Lock()
169 UNIMPLEMENTED();
171 return false;
175 void
176 BBufferStreamManager::Unlock()
178 UNIMPLEMENTED();
182 status_t
183 BBufferStreamManager::Subscribe(BBufferStream *stream)
185 UNIMPLEMENTED();
187 return B_ERROR;
191 status_t
192 BBufferStreamManager::Unsubscribe()
194 UNIMPLEMENTED();
196 return B_ERROR;
200 subscriber_id
201 BBufferStreamManager::ID() const
203 UNIMPLEMENTED();
205 return 0;
208 /*************************************************************
209 * protected BBufferStreamManager
210 *************************************************************/
212 void
213 BBufferStreamManager::StartProcessing()
215 UNIMPLEMENTED();
219 void
220 BBufferStreamManager::StopProcessing()
222 UNIMPLEMENTED();
226 status_t
227 BBufferStreamManager::_ProcessingThread(void *arg)
229 UNIMPLEMENTED();
231 return B_ERROR;
235 void
236 BBufferStreamManager::ProcessingThread()
238 UNIMPLEMENTED();
242 void
243 BBufferStreamManager::SetState(stream_state newState)
245 UNIMPLEMENTED();
249 bigtime_t
250 BBufferStreamManager::SnoozeUntil(bigtime_t sys_time)
252 UNIMPLEMENTED();
254 return 0;
257 /*************************************************************
258 * private BBufferStreamManager
259 *************************************************************/
261 void
262 BBufferStreamManager::_ReservedBufferStreamManager1()
264 UNIMPLEMENTED();
268 void
269 BBufferStreamManager::_ReservedBufferStreamManager2()
271 UNIMPLEMENTED();
275 void
276 BBufferStreamManager::_ReservedBufferStreamManager3()
278 UNIMPLEMENTED();
282 #endif // __GNUC__ < 3