summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Kukkonen <jku@linux.intel.com>2011-09-01 23:45:54 +0300
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2011-09-27 14:13:38 -0400
commit5e27d123f8a24509a619010cf2dedbbd632bbf0b (patch)
tree0d6eced071a47507f3510957ad64c4a639d32f41
parentc84617178fd951ece907cec4eb5c1da44c2123bb (diff)
mail notification: recognize "google:setting" namespace
-rw-r--r--src/connection.c2
-rw-r--r--src/connection.h1
-rw-r--r--src/namespaces.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 51ea6d95..24344255 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2793,6 +2793,8 @@ connection_disco_cb (GabbleDisco *disco,
conn->features |= GABBLE_CONNECTION_FEATURES_GOOGLE_SHARED_STATUS;
else if (0 == strcmp (var, NS_GOOGLE_QUEUE))
conn->features |= GABBLE_CONNECTION_FEATURES_GOOGLE_QUEUE;
+ else if (0 == strcmp (var, NS_GOOGLE_SETTING))
+ conn->features |= GABBLE_CONNECTION_FEATURES_GOOGLE_SETTING;
}
}
diff --git a/src/connection.h b/src/connection.h
index 2b425e92..5ef53e80 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -81,6 +81,7 @@ typedef enum
GABBLE_CONNECTION_FEATURES_INVISIBLE = 1 << 6,
GABBLE_CONNECTION_FEATURES_GOOGLE_SHARED_STATUS = 1 << 7,
GABBLE_CONNECTION_FEATURES_GOOGLE_QUEUE = 1 << 8,
+ GABBLE_CONNECTION_FEATURES_GOOGLE_SETTING = 1 << 9,
} GabbleConnectionFeatures;
typedef struct _GabbleConnectionPrivate GabbleConnectionPrivate;
diff --git a/src/namespaces.h b/src/namespaces.h
index 08b00c6b..21b37b35 100644
--- a/src/namespaces.h
+++ b/src/namespaces.h
@@ -117,6 +117,7 @@
#define NS_VERSION "jabber:iq:version"
#define NS_GEOLOC "http://jabber.org/protocol/geoloc"
#define NS_GOOGLE_MAIL_NOTIFY "google:mail:notify"
+#define NS_GOOGLE_SETTING "google:setting"
#define NS_TEMPPRES "urn:xmpp:temppres:0"
#define NS_GOOGLE_SHARED_STATUS "google:shared-status"