vfs: check userland buffers before reading them.
[haiku.git] / src / kits / media / legacy / Deprecated.cpp
blobd490a316e91466f458500097ec6eba6b3b3a0390
1 /*
2 * Copyright 2002-2015, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <MediaDefs.h>
8 #include <MediaRoster.h>
9 #include <SupportDefs.h>
11 #include "MediaDebug.h"
13 // This file contains parts of the media_kit that can be removed
14 // as considered useless, deprecated and/or not worth to be
15 // implemented.
17 // BMediaRoster
19 status_t
20 BMediaRoster::SetRealtimeFlags(uint32 enabled)
22 UNIMPLEMENTED();
23 return B_ERROR;
27 status_t
28 BMediaRoster::GetRealtimeFlags(uint32* _enabled)
30 UNIMPLEMENTED();
31 return B_ERROR;
35 /*static*/ status_t
36 BMediaRoster::ParseCommand(BMessage& reply)
38 UNIMPLEMENTED();
39 return B_ERROR;
43 status_t
44 BMediaRoster::GetDefaultInfo(media_node_id forDefault, BMessage& config)
46 UNIMPLEMENTED();
47 return B_ERROR;
51 status_t
52 BMediaRoster::SetRunningDefault(media_node_id forDefault,
53 const media_node& node)
55 UNIMPLEMENTED();
56 return B_ERROR;
60 //! Deprecated call.
61 status_t
62 BMediaRoster::SetOutputBuffersFor(const media_source& output,
63 BBufferGroup* group, bool willReclaim)
65 UNIMPLEMENTED();
66 debugger("BMediaRoster::SetOutputBuffersFor missing\n");
67 return B_ERROR;
70 // MediaDefs.h
72 status_t launch_media_server(uint32 flags);
74 status_t media_realtime_init_image(image_id image, uint32 flags);
76 status_t media_realtime_init_thread(thread_id thread, size_t stack_used,
77 uint32 flags);
80 status_t
81 launch_media_server(uint32 flags)
83 return launch_media_server(0, NULL, NULL, flags);
87 // Given an image_id, prepare that image_id for realtime media
88 // If the kind of media indicated by "flags" is not enabled for real-time,
89 // B_MEDIA_REALTIME_DISABLED is returned.
90 // If there are not enough system resources to enable real-time performance,
91 // B_MEDIA_REALTIME_UNAVAILABLE is returned.
92 status_t
93 media_realtime_init_image(image_id image, uint32 flags)
95 UNIMPLEMENTED();
96 return B_OK;
100 // Given a thread ID, and an optional indication of what the thread is
101 // doing in "flags", prepare the thread for real-time media performance.
102 // Currently, this means locking the thread stack, up to size_used bytes,
103 // or all of it if 0 is passed. Typically, you will not be using all
104 // 256 kB of the stack, so you should pass some smaller value you determine
105 // from profiling the thread; typically in the 32-64kB range.
106 // Return values are the same as for media_prepare_realtime_image().
107 status_t
108 media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags)
110 UNIMPLEMENTED();
111 return B_OK;