Main Page   File List  

spin.h

00001 #ifndef __l4util_spin_h
00002 #define __l4util_spin_h
00003 
00004 #include <l4/sys/compiler.h>
00005 
00006 EXTERN_C_BEGIN
00007 
00008 L4_CV void l4_spin(int x,int y);
00009 L4_CV void l4_spin_vga(int x,int y);
00010 L4_CV void l4_spin_n_text(int x, int y, int len, const char*s);
00011 L4_CV void l4_spin_n_text_vga(int x, int y, int len, const char*s);
00012 
00013 /****************************************************************************
00014 *                                                                           *
00015 * spin_text()     - spinning wheel at the hercules screen. The given text   *
00016 *                   must be a text constant, no variables or arrays. Its    *
00017 *                   size is determined with the sizeof operator, it's much  *
00018 *                   faster than the strlen function.                        *
00019 * spin_text_vga() - same for vga.                                           *
00020 *                                                                           *
00021 ****************************************************************************/
00022 #define l4_spin_text(x, y, text) \
00023         l4_spin_n_text((x), (y), sizeof(text)-1, "" text)
00024 #define l4_spin_text_vga(x, y, text) \
00025         l4_spin_n_text_vga((x), (y), sizeof(text)-1, "" text)
00026 
00027 EXTERN_C_END
00028 
00029 #endif

L4 Utilities, part of DROPS  © 2000-2003