vfs: check userland buffers before reading them.
[haiku.git] / src / servers / input / InputServerFilter.cpp
blobf2574fbc4c47eb1e04bcbe89a6955b26adfebc3d
1 /*****************************************************************************/
2 // Haiku InputServer
3 //
4 // This is the InputServerFilter implementation
5 //
6 //
7 // This application and all source files used in its construction, except
8 // where noted, are licensed under the MIT License, and have been written
9 // and are:
11 // Copyright (c) 2002-2004 Haiku Project
13 // Permission is hereby granted, free of charge, to any person obtaining a
14 // copy of this software and associated documentation files (the "Software"),
15 // to deal in the Software without restriction, including without limitation
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 // and/or sell copies of the Software, and to permit persons to whom the
18 // Software is furnished to do so, subject to the following conditions:
20 // The above copyright notice and this permission notice shall be included
21 // in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 // DEALINGS IN THE SOFTWARE.
30 /*****************************************************************************/
33 #include <Region.h>
34 #include <InputServerFilter.h>
35 #include "InputServer.h"
37 /**
38 * Method: BInputServerFilter::BInputServerFilter()
39 * Descr:
41 BInputServerFilter::BInputServerFilter()
43 CALLED();
47 /**
48 * Method: BInputServerFilter::~BInputServerFilter()
49 * Descr:
51 BInputServerFilter::~BInputServerFilter()
53 CALLED();
57 /**
58 * Method: BInputServerFilter::InitCheck()
59 * Descr:
61 status_t
62 BInputServerFilter::InitCheck()
64 CALLED();
65 return B_OK;
69 /**
70 * Method: BInputServerFilter::Filter()
71 * Descr:
73 filter_result
74 BInputServerFilter::Filter(BMessage *message,
75 BList *outList)
77 CALLED();
78 return B_DISPATCH_MESSAGE;
82 /**
83 * Method: BInputServerFilter::GetScreenRegion()
84 * Descr:
86 status_t
87 BInputServerFilter::GetScreenRegion(BRegion *region) const
89 if (!region)
90 return B_BAD_VALUE;
92 *region = BRegion(((InputServer*)be_app)->ScreenFrame());
93 return B_OK;
97 /**
98 * Method: BInputServerFilter::_ReservedInputServerFilter1()
99 * Descr:
101 void
102 BInputServerFilter::_ReservedInputServerFilter1()
108 * Method: BInputServerFilter::_ReservedInputServerFilter2()
109 * Descr:
111 void
112 BInputServerFilter::_ReservedInputServerFilter2()
118 * Method: BInputServerFilter::_ReservedInputServerFilter3()
119 * Descr:
121 void
122 BInputServerFilter::_ReservedInputServerFilter3()
128 * Method: BInputServerFilter::_ReservedInputServerFilter4()
129 * Descr:
131 void
132 BInputServerFilter::_ReservedInputServerFilter4()