summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2011-06-20 12:20:39 +0100
committerRoss Burton <ross@linux.intel.com>2011-06-28 15:25:45 +0100
commit443a9b04671f211d93c3c64919c0ad445747fe1b (patch)
tree0ff8d824ff6dfd7a175eedee61b0837139b70f9a
parent4352f9fb16d9d94d68c9c0ba507dbda5bec0f7c0 (diff)
downloadgconf-443a9b04671f211d93c3c64919c0ad445747fe1b.tar.gz
gconf: Surround CORBA code with ifdefs
-rw-r--r--gconf/gconf.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gconf/gconf.c b/gconf/gconf.c
index 0b599446..aa75b030 100644
--- a/gconf/gconf.c
+++ b/gconf/gconf.c
@@ -17,7 +17,10 @@
* Boston, MA 02110-1301, USA.
*/
+#if HAVE_CORBA
#include "GConfX.h"
+#endif
+
#include "gconf.h"
#include "gconf-internals.h"
#include "gconf-sources.h"
@@ -34,6 +37,7 @@
#include <sys/time.h>
#include <unistd.h>
+#ifdef HAVE_CORBA
/* Returns TRUE if there was an error, frees exception, sets err */
static gboolean gconf_handle_corba_exception(CORBA_Environment* ev, GError** err);
/* just returns TRUE if there's an exception indicating the server is
@@ -43,6 +47,7 @@ static void gconf_detach_config_server(void);
/* Maximum number of times to try re-spawning the server if it's down. */
#define MAX_RETRIES 1
+#endif /* HAVE_CORBA */
/* copied from gutf8.c where it exists as a (unfortunately) non-exported function */
static gchar *
@@ -109,6 +114,7 @@ gconf_key_check(const gchar* key, GError** err)
return TRUE;
}
+#ifdef HAVE_CORBA
typedef struct _CnxnTable CnxnTable;
struct _GConfEngine {
@@ -2636,7 +2642,8 @@ gconf_get_config_listener(void)
return listener;
}
-
+#endif /* HAVE_CORBA */
+
void
gconf_preinit (gpointer app, gpointer mod_info)
{
@@ -2971,6 +2978,7 @@ gconf_unique_key (void)
return key;
}
+#ifdef HAVE_CORBA
/*
* Table of connections
*/
@@ -3175,6 +3183,7 @@ gconf_spawn_daemon(GError** err)
else
return TRUE;
}
+#endif /* HAVE_CORBA */
/*
* Sugar functions
@@ -3682,6 +3691,7 @@ gconf_engine_set_pair (GConfEngine* conf, const gchar* key,
return error_checked_set(conf, key, pair, err);
}
+#ifdef HAVE_CORBA
/* CORBA Util */
/* Set GConfError from an exception, free exception, etc. */
@@ -3776,6 +3786,7 @@ gconf_handle_corba_exception(CORBA_Environment* ev, GError** err)
return TRUE;
}
}
+#endif
/*
* Enumeration conversions