tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / media / legacy / OldBufferStream.cpp
blob248e595dd93136c14e3efebe4d19c7f7d6bbfd42
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 "OldBufferStream.h"
15 #include <debug.h>
16 #include <new>
19 /*************************************************************
20 * public BAbstractBufferStream
21 *************************************************************/
22 status_t
23 BAbstractBufferStream::GetStreamParameters(size_t *bufferSize,
24 int32 *bufferCount,
25 bool *isRunning,
26 int32 *subscriberCount) const
28 UNIMPLEMENTED();
30 return B_ERROR;
34 status_t
35 BAbstractBufferStream::SetStreamBuffers(size_t bufferSize,
36 int32 bufferCount)
38 UNIMPLEMENTED();
40 return B_ERROR;
44 status_t
45 BAbstractBufferStream::StartStreaming()
47 UNIMPLEMENTED();
49 return B_ERROR;
53 status_t
54 BAbstractBufferStream::StopStreaming()
56 UNIMPLEMENTED();
58 return B_ERROR;
61 /*************************************************************
62 * protected BAbstractBufferStream
63 *************************************************************/
65 void
66 BAbstractBufferStream::_ReservedAbstractBufferStream1()
68 UNIMPLEMENTED();
72 void
73 BAbstractBufferStream::_ReservedAbstractBufferStream2()
75 UNIMPLEMENTED();
79 void
80 BAbstractBufferStream::_ReservedAbstractBufferStream3()
82 UNIMPLEMENTED();
86 void
87 BAbstractBufferStream::_ReservedAbstractBufferStream4()
89 UNIMPLEMENTED();
93 stream_id
94 BAbstractBufferStream::StreamID() const
96 UNIMPLEMENTED();
98 return 0;
102 status_t
103 BAbstractBufferStream::Subscribe(char *name,
104 subscriber_id *subID,
105 sem_id semID)
107 UNIMPLEMENTED();
109 return B_ERROR;
113 status_t
114 BAbstractBufferStream::Unsubscribe(subscriber_id subID)
116 UNIMPLEMENTED();
118 return B_ERROR;
122 status_t
123 BAbstractBufferStream::EnterStream(subscriber_id subID,
124 subscriber_id neighbor,
125 bool before)
127 UNIMPLEMENTED();
129 return B_ERROR;
133 status_t
134 BAbstractBufferStream::ExitStream(subscriber_id subID)
136 UNIMPLEMENTED();
138 return B_ERROR;
142 BMessenger *
143 BAbstractBufferStream::Server() const
145 UNIMPLEMENTED();
146 return NULL;
150 status_t
151 BAbstractBufferStream::SendRPC(BMessage *msg,
152 BMessage *reply) const
154 UNIMPLEMENTED();
156 return B_ERROR;
159 /*************************************************************
160 * public BBufferStream
161 *************************************************************/
163 BBufferStream::BBufferStream(size_t headerSize,
164 BBufferStreamManager *controller,
165 BSubscriber *headFeeder,
166 BSubscriber *tailFeeder)
168 UNIMPLEMENTED();
172 BBufferStream::~BBufferStream()
174 UNIMPLEMENTED();
178 void *
179 BBufferStream::operator new(size_t size)
181 UNIMPLEMENTED();
183 void *dummy = NULL;
184 // just to circumvent a warning that operator new should not return NULL
185 return dummy;
189 void
190 BBufferStream::operator delete(void *stream, size_t size)
192 UNIMPLEMENTED();
196 size_t
197 BBufferStream::HeaderSize() const
199 UNIMPLEMENTED();
201 return 0;
205 status_t
206 BBufferStream::GetStreamParameters(size_t *bufferSize,
207 int32 *bufferCount,
208 bool *isRunning,
209 int32 *subscriberCount) const
211 UNIMPLEMENTED();
213 return B_ERROR;
217 status_t
218 BBufferStream::SetStreamBuffers(size_t bufferSize,
219 int32 bufferCount)
221 UNIMPLEMENTED();
223 return B_ERROR;
227 status_t
228 BBufferStream::StartStreaming()
230 UNIMPLEMENTED();
232 return B_ERROR;
236 status_t
237 BBufferStream::StopStreaming()
239 UNIMPLEMENTED();
241 return B_ERROR;
245 BBufferStreamManager *
246 BBufferStream::StreamManager() const
248 UNIMPLEMENTED();
249 return NULL;
253 int32
254 BBufferStream::CountBuffers() const
256 UNIMPLEMENTED();
258 return 0;
262 status_t
263 BBufferStream::Subscribe(char *name,
264 subscriber_id *subID,
265 sem_id semID)
267 UNIMPLEMENTED();
269 return B_ERROR;
273 status_t
274 BBufferStream::Unsubscribe(subscriber_id subID)
276 UNIMPLEMENTED();
278 return B_ERROR;
282 status_t
283 BBufferStream::EnterStream(subscriber_id subID,
284 subscriber_id neighbor,
285 bool before)
287 UNIMPLEMENTED();
289 return B_ERROR;
293 status_t
294 BBufferStream::ExitStream(subscriber_id subID)
296 UNIMPLEMENTED();
298 return B_ERROR;
302 bool
303 BBufferStream::IsSubscribed(subscriber_id subID)
305 UNIMPLEMENTED();
307 return false;
311 bool
312 BBufferStream::IsEntered(subscriber_id subID)
314 UNIMPLEMENTED();
316 return false;
320 status_t
321 BBufferStream::SubscriberInfo(subscriber_id subID,
322 char **name,
323 stream_id *streamID,
324 int32 *position)
326 UNIMPLEMENTED();
328 return B_ERROR;
332 status_t
333 BBufferStream::UnblockSubscriber(subscriber_id subID)
335 UNIMPLEMENTED();
337 return B_ERROR;
341 status_t
342 BBufferStream::AcquireBuffer(subscriber_id subID,
343 buffer_id *bufID,
344 bigtime_t timeout)
346 UNIMPLEMENTED();
348 return B_ERROR;
352 status_t
353 BBufferStream::ReleaseBuffer(subscriber_id subID)
355 UNIMPLEMENTED();
357 return B_ERROR;
361 size_t
362 BBufferStream::BufferSize(buffer_id bufID) const
364 UNIMPLEMENTED();
366 return 0;
370 char *
371 BBufferStream::BufferData(buffer_id bufID) const
373 UNIMPLEMENTED();
374 return NULL;
378 bool
379 BBufferStream::IsFinalBuffer(buffer_id bufID) const
381 UNIMPLEMENTED();
383 return false;
387 int32
388 BBufferStream::CountBuffersHeld(subscriber_id subID)
390 UNIMPLEMENTED();
392 return 0;
396 int32
397 BBufferStream::CountSubscribers() const
399 UNIMPLEMENTED();
401 return 0;
405 int32
406 BBufferStream::CountEnteredSubscribers() const
408 UNIMPLEMENTED();
410 return 0;
414 subscriber_id
415 BBufferStream::FirstSubscriber() const
417 UNIMPLEMENTED();
419 return 0;
423 subscriber_id
424 BBufferStream::LastSubscriber() const
426 UNIMPLEMENTED();
428 return 0;
432 subscriber_id
433 BBufferStream::NextSubscriber(subscriber_id subID)
435 UNIMPLEMENTED();
437 return 0;
441 subscriber_id
442 BBufferStream::PrevSubscriber(subscriber_id subID)
444 UNIMPLEMENTED();
446 return 0;
450 void
451 BBufferStream::PrintStream()
453 UNIMPLEMENTED();
457 void
458 BBufferStream::PrintBuffers()
460 UNIMPLEMENTED();
464 void
465 BBufferStream::PrintSubscribers()
467 UNIMPLEMENTED();
471 bool
472 BBufferStream::Lock()
474 UNIMPLEMENTED();
476 return false;
480 void
481 BBufferStream::Unlock()
483 UNIMPLEMENTED();
487 status_t
488 BBufferStream::AddBuffer(buffer_id bufID)
490 UNIMPLEMENTED();
492 return B_ERROR;
496 buffer_id
497 BBufferStream::RemoveBuffer(bool force)
499 UNIMPLEMENTED();
501 return 0;
505 buffer_id
506 BBufferStream::CreateBuffer(size_t size,
507 bool isFinal)
509 UNIMPLEMENTED();
511 return 0;
515 void
516 BBufferStream::DestroyBuffer(buffer_id bufID)
518 UNIMPLEMENTED();
522 void
523 BBufferStream::RescindBuffers()
525 UNIMPLEMENTED();
528 /*************************************************************
529 * private BBufferStream
530 *************************************************************/
532 void
533 BBufferStream::_ReservedBufferStream1()
535 UNIMPLEMENTED();
539 void
540 BBufferStream::_ReservedBufferStream2()
542 UNIMPLEMENTED();
546 void
547 BBufferStream::_ReservedBufferStream3()
549 UNIMPLEMENTED();
553 void
554 BBufferStream::_ReservedBufferStream4()
556 UNIMPLEMENTED();
560 void
561 BBufferStream::InitSubscribers()
563 UNIMPLEMENTED();
567 bool
568 BBufferStream::IsSubscribedSafe(subscriber_id subID) const
570 UNIMPLEMENTED();
572 return false;
576 bool
577 BBufferStream::IsEnteredSafe(subscriber_id subID) const
579 UNIMPLEMENTED();
581 return false;
585 void
586 BBufferStream::InitBuffers()
588 UNIMPLEMENTED();
592 status_t
593 BBufferStream::WakeSubscriber(subscriber_id subID)
595 UNIMPLEMENTED();
597 return B_ERROR;
601 void
602 BBufferStream::InheritBuffers(subscriber_id subID)
604 UNIMPLEMENTED();
608 void
609 BBufferStream::BequeathBuffers(subscriber_id subID)
611 UNIMPLEMENTED();
615 status_t
616 BBufferStream::ReleaseBufferSafe(subscriber_id subID)
618 UNIMPLEMENTED();
620 return B_ERROR;
624 status_t
625 BBufferStream::ReleaseBufferTo(buffer_id bufID,
626 subscriber_id subID)
628 UNIMPLEMENTED();
630 return B_ERROR;
634 void
635 BBufferStream::FreeAllBuffers()
637 UNIMPLEMENTED();
641 void
642 BBufferStream::FreeAllSubscribers()
644 UNIMPLEMENTED();
648 #endif // __GNUC__ < 3