Add gbs.conf
[profile/ivi/psplash.git] / psplash.h
index aec24d6..f78c117 100644 (file)
--- a/psplash.h
+++ b/psplash.h
@@ -29,6 +29,7 @@
 #include <signal.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #if defined(__i386__) || defined(__alpha__)
 #include <termios.h>
 #include <unistd.h>
 
-typedef unsigned char  uint8;
-typedef unsigned short uint16;
+typedef uint8_t  uint8;
+typedef uint16_t uint16;
+typedef int            bool;
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#ifndef TRUE
+#define TRUE 1
+#endif
 
 #define PSPLASH_FIFO "psplash_fifo"
 
 #define CLAMP(x, low, high) \
    (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
 
-#define DEBUG 1
+#define DEBUG 0
 
 #if DEBUG
 #define DBG(x, a...) \
@@ -59,7 +69,20 @@ typedef unsigned short uint16;
 #define DBG(x, a...) do {} while (0)
 #endif
 
+typedef struct PSplashFont
+{
+    char *name;                                /* Font name. */
+    int   height;                      /* Height in pixels. */
+    int   index_mask;                  /* ((1 << N) - 1). */
+    int  *offset;                      /* (1 << N) offsets into index. */
+    int  *index;
+    u_int32_t *content;
+}
+PSplashFont;
+
+
 #include "psplash-fb.h"
 #include "psplash-console.h"
+#include "psplash-colors.h"
 
 #endif