glom r1969 - in trunk: . glom/libglom/document
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1969 - in trunk: . glom/libglom/document
- Date: Mon, 9 Mar 2009 10:08:43 +0000 (UTC)
Author: murrayc
Date: Mon Mar 9 10:08:43 2009
New Revision: 1969
URL: http://svn.gnome.org/viewvc/glom?rev=1969&view=rev
Log:
2009-03-09 Murray Cumming <murrayc murrayc com>
* glom/libglom/document/document_glom.h: HostingMode: Declare all enum
values regardless of what is enabled, to avoid ABI confusion and to maybe
allow us to say that some are not supported at runtime.
Modified:
trunk/ChangeLog
trunk/glom/libglom/document/document_glom.h
Modified: trunk/glom/libglom/document/document_glom.h
==============================================================================
--- trunk/glom/libglom/document/document_glom.h (original)
+++ trunk/glom/libglom/document/document_glom.h Mon Mar 9 10:08:43 2009
@@ -110,13 +110,14 @@
/// How the database is hosted.
enum HostingMode
{
-#ifdef GLOM_ENABLE_POSTGRESQL
+ //Only enabled if GLOM_ENABLE_POSTGRESQL is defined:
HOSTING_MODE_POSTGRES_CENTRAL, /*!< The database is hosted on an external postgresql server. */
+
+ //Only enabled if GLOM_ENABLE_POSTGRESQL is defined and GLOM_ENABLE_CLIENT_ONLY is not defined:
HOSTING_MODE_POSTGRES_SELF, /*!< A new postgres database process is spawned that hosts the data. */
-#endif //GLOM_ENABLE_POSTGRESQL
-#ifdef GLOM_ENABLE_SQLITE
+
+ //Only enabled if GLOM_ENABLE_SQLITE is defined:
HOSTING_MODE_SQLITE, /*!< A sqlite database file is used. */
-#endif // GLOM_ENABLE_SQLITE
//This reduces the ifdefs elsewhere:
#ifdef GLOM_ENABLE_POSTGRESQL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]