]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/l4con/include/l4con.h
Update
[l4.git] / l4 / pkg / l4con / include / l4con.h
index 4285da988627a4b6a6d515816effa0329b9a6a3a..5e95f85cffe307adf6c2de0af35a0381b12ecedb 100644 (file)
 
 #include <l4/sys/capability>
 #include <l4/re/console>
+#include <l4/sys/cxx/ipc_iface>
 
 class L4con : public L4::Kobject_t<L4con, L4Re::Console, 0x4100>
 {
 public:
-  class L4con_ {
-    public:
-      enum Opcodes {
-       Close, Pslim_fill, Pslim_copy, Puts, Puts_scale, Get_font_size
-      };
-  };
-  long close() const throw();
+  L4_INLINE_RPC(long, close, ());
+
+  L4_INLINE_RPC(long, pslim_fill, (int x, int y, int w, int h,
+                                   l4con_pslim_color_t color));
+
+  L4_INLINE_RPC(long, pslim_copy, (int x, int y, int w, int h,
+                                   l4_int16_t dx, l4_int16_t dy));
+
+  L4_INLINE_RPC(long, puts, (short x, short y, l4con_pslim_color_t fg_color,
+                             l4con_pslim_color_t bg_color,
+                             L4::Ipc::String<char> text));
+
+  L4_INLINE_RPC(long, puts_scale, (short x, short y,
+                                   l4con_pslim_color_t fg_color,
+                                   l4con_pslim_color_t bg_color,
+                                   short scale_x, short scale_y,
+                                   L4::Ipc::String<char> text));
+  L4_INLINE_RPC(long, get_font_size, (short *w, short *h));
+
+
+  typedef L4::Typeid::Rpcs<close_t, pslim_fill_t, pslim_copy_t,
+                           puts_t, puts_scale_t, get_font_size_t> Rpcs;
 };
 
 #endif