[Xfce4-commits] r24944 - squeeze/trunk/libsqueeze

Stephan Arts stephan at xfce.org
Sun Feb 11 12:41:19 CET 2007


Author: stephan
Date: 2007-02-11 11:41:19 +0000 (Sun, 11 Feb 2007)
New Revision: 24944

Modified:
   squeeze/trunk/libsqueeze/archive.c
   squeeze/trunk/libsqueeze/archive.h
Log:
some adjustments to archive.{c,h}

Modified: squeeze/trunk/libsqueeze/archive.c
===================================================================
--- squeeze/trunk/libsqueeze/archive.c	2007-02-11 00:16:57 UTC (rev 24943)
+++ squeeze/trunk/libsqueeze/archive.c	2007-02-11 11:41:19 UTC (rev 24944)
@@ -1523,14 +1523,23 @@
 }
 
 void
-lsq_archive_enqueue(LSQArchive *archive, LSQArchiveCommand *command)
+lsq_archive_enqueue_command(LSQArchive *archive, LSQArchiveCommand *command)
 {
 	archive->command_queue = g_slist_append(archive->command_queue, command);
 }
 
 void
-lsq_archive_dequeue(LSQArchive *archive, LSQArchiveCommand *command)
+lsq_archive_dequeue_command(LSQArchive *archive, LSQArchiveCommand *command)
 {
 	g_return_if_fail(archive->command_queue->data == command);
 	archive->command_queue = g_slist_remove(archive->command_queue, command);
 }
+
+LSQArchiveCommand *
+lsq_archive_get_front_command(LSQArchive *archive)
+{
+	if(archive->command_queue)
+		return archive->command_queue->data;
+	else
+		return NULL;
+}

Modified: squeeze/trunk/libsqueeze/archive.h
===================================================================
--- squeeze/trunk/libsqueeze/archive.h	2007-02-11 00:16:57 UTC (rev 24943)
+++ squeeze/trunk/libsqueeze/archive.h	2007-02-11 11:41:19 UTC (rev 24944)
@@ -122,8 +122,9 @@
 
 void                lsq_archive_add_children(LSQArchive *, GSList *) G_GNUC_INTERNAL;
 
-void                lsq_archive_enqueue(LSQArchive *archive, LSQArchiveCommand *command);
-void                lsq_archive_dequeue(LSQArchive *archive, LSQArchiveCommand *command);
+void                lsq_archive_enqueue_command(LSQArchive *archive, LSQArchiveCommand *command);
+void                lsq_archive_dequeue_command(LSQArchive *archive, LSQArchiveCommand *command);
+LSQArchiveCommand  *lsq_archive_get_front_command(LSQArchive *archive);
 
 G_END_DECLS
 



More information about the Xfce4-commits mailing list