[Splashy-devel] 5/6 Make simple interface for splashy_video.h

Tim Dijkstra newsuser at famdijkstra.org
Sat Aug 12 21:36:59 UTC 2006


Remove glibcisms from splashy_video.h. They are not needed and
makes it possible to just link with -lspashy in the end.
This just changes gint->int, gchar->char and gboolean->int, 
which is precisely what glib.h also does btw. 


diff -u splashy_video.c splashy_video.c
--- splashy_video.c	2006-08-12 14:23:03.000000000 +0200
+++ splashy_video.c	2006-08-12 14:24:59.000000000 +0200
@@ -44,7 +44,6 @@
 
 #include "common_macros.h"
 #include "common_functions.h"
-#include "splashy_functions.h"
 #include "xml_parser.h"
 #include "xml_config.h"
 #include "splashy_video.h"
diff -u splashy_video.h splashy_video.h
--- splashy_video.h	2006-08-12 14:23:03.000000000 +0200
+++ splashy_video.h	2006-08-12 14:24:31.000000000 +0200
@@ -20,36 +20,34 @@
 #ifndef _video_H
 #define _video_H
 
-#include <glib.h>
-
 /*
  * public functions 
  */
 void video_reset_progressbar_counters();
-void video_set_progressbar_forward(gboolean go_forward);
-gint video_draw_progressbar ();
-gint video_update_progressbar (gint perc);
-void video_start_splash (const gchar * background);
-void video_change_splash (const gchar * newimage);
+void video_set_progressbar_forward(int go_forward);
+int video_draw_progressbar ();
+int video_update_progressbar (int perc);
+void video_start_splash (const char * background);
+void video_change_splash (const char * newimage);
 void video_start_text_area ();
-void video_set_mode ();
+//void video_set_mode ();
 void video_allow_vt_switching ();
 /*
  * allows to print a single message to the center of the textbox area
  * reseting the old one
  */
-void video_printline (gchar * string);
+void video_printline (char * string);
 /*
  * allows to print a message appended to the end of the textbox area
  * keeping the old one
  */
-void video_printline_s (gchar * string);
+void video_printline_s (char * string);
 /* 
  * write data to our textbox the right way. it uses video_printline_s() to do
  * the actual writing. @see verbose_text_loop() in splashy_functions.c
  */
 void video_writelog (unsigned char *ptr, 
-                gint len, char *ringbuf, char *outptr, char *endptr);
+                int len, char *ringbuf, char *outptr, char *endptr);
 
 void video_fade_in ();
 void video_fade_out ();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/splashy-devel/attachments/20060812/cfb1b838/signature.pgp


More information about the Splashy-devel mailing list