2 * Copyright 2002, Marcus Overhagen. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
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
13 #include "OldBufferStream.h"
19 /*************************************************************
20 * public BAbstractBufferStream
21 *************************************************************/
23 BAbstractBufferStream::GetStreamParameters(size_t *bufferSize
,
26 int32
*subscriberCount
) const
35 BAbstractBufferStream::SetStreamBuffers(size_t bufferSize
,
45 BAbstractBufferStream::StartStreaming()
54 BAbstractBufferStream::StopStreaming()
61 /*************************************************************
62 * protected BAbstractBufferStream
63 *************************************************************/
66 BAbstractBufferStream::_ReservedAbstractBufferStream1()
73 BAbstractBufferStream::_ReservedAbstractBufferStream2()
80 BAbstractBufferStream::_ReservedAbstractBufferStream3()
87 BAbstractBufferStream::_ReservedAbstractBufferStream4()
94 BAbstractBufferStream::StreamID() const
103 BAbstractBufferStream::Subscribe(char *name
,
104 subscriber_id
*subID
,
114 BAbstractBufferStream::Unsubscribe(subscriber_id subID
)
123 BAbstractBufferStream::EnterStream(subscriber_id subID
,
124 subscriber_id neighbor
,
134 BAbstractBufferStream::ExitStream(subscriber_id subID
)
143 BAbstractBufferStream::Server() const
151 BAbstractBufferStream::SendRPC(BMessage
*msg
,
152 BMessage
*reply
) const
159 /*************************************************************
160 * public BBufferStream
161 *************************************************************/
163 BBufferStream::BBufferStream(size_t headerSize
,
164 BBufferStreamManager
*controller
,
165 BSubscriber
*headFeeder
,
166 BSubscriber
*tailFeeder
)
172 BBufferStream::~BBufferStream()
179 BBufferStream::operator new(size_t size
)
184 // just to circumvent a warning that operator new should not return NULL
190 BBufferStream::operator delete(void *stream
, size_t size
)
197 BBufferStream::HeaderSize() const
206 BBufferStream::GetStreamParameters(size_t *bufferSize
,
209 int32
*subscriberCount
) const
218 BBufferStream::SetStreamBuffers(size_t bufferSize
,
228 BBufferStream::StartStreaming()
237 BBufferStream::StopStreaming()
245 BBufferStreamManager
*
246 BBufferStream::StreamManager() const
254 BBufferStream::CountBuffers() const
263 BBufferStream::Subscribe(char *name
,
264 subscriber_id
*subID
,
274 BBufferStream::Unsubscribe(subscriber_id subID
)
283 BBufferStream::EnterStream(subscriber_id subID
,
284 subscriber_id neighbor
,
294 BBufferStream::ExitStream(subscriber_id subID
)
303 BBufferStream::IsSubscribed(subscriber_id subID
)
312 BBufferStream::IsEntered(subscriber_id subID
)
321 BBufferStream::SubscriberInfo(subscriber_id subID
,
333 BBufferStream::UnblockSubscriber(subscriber_id subID
)
342 BBufferStream::AcquireBuffer(subscriber_id subID
,
353 BBufferStream::ReleaseBuffer(subscriber_id subID
)
362 BBufferStream::BufferSize(buffer_id bufID
) const
371 BBufferStream::BufferData(buffer_id bufID
) const
379 BBufferStream::IsFinalBuffer(buffer_id bufID
) const
388 BBufferStream::CountBuffersHeld(subscriber_id subID
)
397 BBufferStream::CountSubscribers() const
406 BBufferStream::CountEnteredSubscribers() const
415 BBufferStream::FirstSubscriber() const
424 BBufferStream::LastSubscriber() const
433 BBufferStream::NextSubscriber(subscriber_id subID
)
442 BBufferStream::PrevSubscriber(subscriber_id subID
)
451 BBufferStream::PrintStream()
458 BBufferStream::PrintBuffers()
465 BBufferStream::PrintSubscribers()
472 BBufferStream::Lock()
481 BBufferStream::Unlock()
488 BBufferStream::AddBuffer(buffer_id bufID
)
497 BBufferStream::RemoveBuffer(bool force
)
506 BBufferStream::CreateBuffer(size_t size
,
516 BBufferStream::DestroyBuffer(buffer_id bufID
)
523 BBufferStream::RescindBuffers()
528 /*************************************************************
529 * private BBufferStream
530 *************************************************************/
533 BBufferStream::_ReservedBufferStream1()
540 BBufferStream::_ReservedBufferStream2()
547 BBufferStream::_ReservedBufferStream3()
554 BBufferStream::_ReservedBufferStream4()
561 BBufferStream::InitSubscribers()
568 BBufferStream::IsSubscribedSafe(subscriber_id subID
) const
577 BBufferStream::IsEnteredSafe(subscriber_id subID
) const
586 BBufferStream::InitBuffers()
593 BBufferStream::WakeSubscriber(subscriber_id subID
)
602 BBufferStream::InheritBuffers(subscriber_id subID
)
609 BBufferStream::BequeathBuffers(subscriber_id subID
)
616 BBufferStream::ReleaseBufferSafe(subscriber_id subID
)
625 BBufferStream::ReleaseBufferTo(buffer_id bufID
,
635 BBufferStream::FreeAllBuffers()
642 BBufferStream::FreeAllSubscribers()
648 #endif // __GNUC__ < 3