[file-roller] test-server: reorganize the flags to decide what to run in the tester
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] test-server: reorganize the flags to decide what to run in the tester
- Date: Fri, 27 Sep 2013 17:06:52 +0000 (UTC)
commit 7379619de02a2efda05dff2209d05e2c3bf1cb4b
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Sep 26 16:07:54 2013 +0200
test-server: reorganize the flags to decide what to run in the tester
And also make 'fileroller_getsupportedtypes_ready_cb()' be included in
compilation only when needed, to avoid compiler warnings:
test-server.c:30:1: warning: ‘fileroller_getsupportedtypes_ready_cb’ defined but not used
[-Wunused-function]
fileroller_getsupportedtypes_ready_cb (GObject *source_object,
^
https://bugzilla.gnome.org/show_bug.cgi?id=708839
src/test-server.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/src/test-server.c b/src/test-server.c
index d3103b2..22efa17 100644
--- a/src/test-server.c
+++ b/src/test-server.c
@@ -22,10 +22,16 @@
#include <config.h>
#include <gio/gio.h>
+/* Decide what to run... */
+#define GET_SUPPORTED_TYPES 0
+#define ADD_TO_ARCHIVE 0
+#define COMPRESS 1
+#define EXTRACT 0
+#define EXTRACT_HERE 0
GMainLoop *loop;
-
+#if GET_SUPPORTED_TYPES
static void
fileroller_getsupportedtypes_ready_cb (GObject *source_object,
GAsyncResult *res,
@@ -84,7 +90,7 @@ fileroller_getsupportedtypes_ready_cb (GObject *source_object,
g_object_unref (proxy);
g_main_loop_quit (loop);
}
-
+#endif
static void
fileroller_addtoarchive_ready_cb (GObject *source_object,
@@ -155,7 +161,7 @@ main (int argc, char *argv[])
G_CALLBACK (on_signal),
NULL);
-#if 0
+#if GET_SUPPORTED_TYPES
/* -- GetSupportedTypes -- */
g_dbus_proxy_call (proxy,
@@ -168,7 +174,7 @@ main (int argc, char *argv[])
NULL);
#endif
-#if 0
+#if ADD_TO_ARCHIVE
/* -- AddToArchive -- */
char *archive;
@@ -195,7 +201,7 @@ main (int argc, char *argv[])
g_strfreev (files);
#endif
-#if 1
+#if COMPRESS
/* -- Compress -- */
@@ -224,7 +230,7 @@ main (int argc, char *argv[])
#endif
-#if 0
+#if EXTRACT
/* -- Extract -- */
@@ -242,7 +248,7 @@ main (int argc, char *argv[])
#endif
-#if 0
+#if EXTRACT_HERE
/* -- ExtractHere -- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]