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

Tim Dijkstra newsuser at famdijkstra.org
Sat Aug 12 21:37:04 UTC 2006


Add a video_init function to init the config file. This
function is currently not used in splashy itself.

diff -u splashy_video.c splashy_video.c
--- splashy_video.c	2006-08-12 14:24:59.000000000 +0200
+++ splashy_video.c	2006-08-12 22:44:48.000000000 +0200
@@ -1341,3 +1342,14 @@
                                       video.textbox->surface, NULL, 0, 0);
 
 }
+
+int
+video_init (const char * file)
+{
+        if (!init_config(file)) {
+            ERROR_PRINT("libsplashy: No config file found at %s", file);
+            return FALSE;
+        }
+
+        return TRUE;
+}
diff -u splashy_video.h splashy_video.h
--- splashy_video.h	2006-08-12 14:24:31.000000000 +0200
+++ splashy_video.h	2006-08-12 22:43:12.000000000 +0200
@@ -58,4 +58,6 @@
 void video_wait_for_event ();
 int video_get_key_event (int * key_id);
 
+int video_init();
+
 #endif
-------------- 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/53f0aacc/signature.pgp


More information about the Splashy-devel mailing list