xref: /haiku/src/servers/net/SimpleMessageFilter.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 /*
2  * Copyright 2004, Waldemar Kornewald <wkornew@gmx.net>
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef _SIMPLE_MESSAGE_FILTER__H
7 #define _SIMPLE_MESSAGE_FILTER__H
8 
9 #include <MessageFilter.h>
10 
11 
12 class SimpleMessageFilter : public BMessageFilter {
13 	public:
14 		SimpleMessageFilter(const uint32 *what, BHandler *target);
15 		virtual ~SimpleMessageFilter();
16 
17 		virtual filter_result Filter(BMessage *message, BHandler **target);
18 
19 	private:
20 		uint32 *fWhatArray;
21 		BHandler *fTarget;
22 };
23 
24 
25 #endif
26