L4Re - L4 Runtime Environment
meta
Go to the documentation of this file.
1 // vi:set ft=cpp: -*- Mode: C++ -*-
7 /*
8  * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
9  * economic rights: Technische Universität Dresden (Germany)
10  *
11  * This file is part of TUD:OS and distributed under the terms of the
12  * GNU General Public License 2.
13  * Please see the COPYING-GPL-2 file for details.
14  *
15  * As a special exception, you may use this file as part of a free software
16  * library without restriction. Specifically, if other files instantiate
17  * templates or use macros or inline functions from this file, or you compile
18  * this file and link it with other files to produce an executable, this
19  * file does not by itself cause the resulting executable to be covered by
20  * the GNU General Public License. This exception does not however
21  * invalidate any other reasons why the executable file might be covered by
22  * the GNU General Public License.
23  */
24 
25 #pragma once
26 
27 #include "kobject"
28 #include "cxx/ipc_iface"
29 #include "cxx/ipc_string"
30 
31 namespace L4 {
32 
37 class Meta : public Kobject_t<Meta, Kobject, L4_PROTO_META>
38 {
39 public:
47 
61  L4_INLINE_RPC(l4_msgtag_t, interface, (l4_umword_t idx, long *proto,
62  L4::Ipc::String<char> *name));
63 
76 
78 };
79 
80 }
Standard list of RPCs of an interface.
Definition: __typeinfo.h:438
signed long l4_mword_t
Signed machine word.
Definition: l4int.h:49
l4_msgtag_t supports(l4_mword_t protocol)
Figure out if the object supports the given protocol (number).
L4 low-level kernel interface.
l4_msgtag_t num_interfaces()
Get the number of interfaces implemented by this object.
Meta interface that shall be implemented by each L4Re object and gives access to the dynamic type inf...
Definition: meta:37
#define L4_INLINE_RPC(res, name, args, attr...)
Define an inline RPC call (type and callable).
Definition: ipc_iface:458
unsigned long l4_umword_t
Unsigned machine word.
Definition: l4int.h:52
l4_msgtag_t interface(l4_umword_t idx, long *proto, L4::Ipc::String< char > *name)
Get the protocol number that must be used for the interface with the number idx.
Interface Definition Language.
Helper class to create an L4Re interface class that is derived from a single base class...
Definition: __typeinfo.h:759
Message tag data structure.
Definition: types.h:159