3 // ****************************************************************************
4 // vfdserver.h (C) 1992-2003 Christophe de Dinechin (ddd)
6 // ****************************************************************************
10 // Data structures used by the VFD server
19 // ****************************************************************************
20 // This document is confidential.
21 // Do not redistribute without written permission
22 // ****************************************************************************
24 // * Revision : $Revision$
26 // ****************************************************************************
28 typedef unsigned char byte
;
32 #define VFD_SIZE (VFD_COLS * VFD_LINES)
33 #define VFD_PLINES (VFD_LINES * 8)
36 typedef struct vfdclient
*vfdclient_p
;
37 typedef struct vfdclient
38 // ----------------------------------------------------------------------------
39 // Information about a client of this server
40 // ----------------------------------------------------------------------------
45 byte valid
[VFD_SIZE
]; // The committed bytes to display
46 byte display
[VFD_SIZE
]; // The bytes to display
47 byte shape
[VFD_SIZE
]; // The client requested shape
48 byte mask
[VFD_SIZE
]; // Compositing mask
49 byte
* base
; // Where we are writing
50 volatile int reader_index
; // Updated by display refresh
51 volatile int writer_index
; // Updated by content task
52 char * glyphs
[256]; // Glyphs for that client
53 int priority
; // High priority in foreground
63 #endif /* VFDSERVER_H */