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-06 18:29:10 -0400
commitdc7ba1b82823a8e637f1bf3e8257ff44132f44b1 (patch)
tree58533c2a6c9abf940c05cb1ab3147ba88571c6b2
parent9b3b88ab8a7fdeeeb98faae23e6b53b1051e3415 (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 c8d392f3..dc724bd9 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2847,6 +2847,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 109f2d4f..586b648c 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 d39853db..bacbb2ac 100644
--- a/src/namespaces.h
+++ b/src/namespaces.h
@@ -118,6 +118,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"