[Telepathy-commits] [telepathy-gabble/master] Add unknown and error status types

Sjoerd Simons sjoerd at luon.net
Tue Aug 19 10:54:07 PDT 2008


20080721131419-93b9a-9835ec3cb79bcd0d96ad9a65f1da0af1855d9688.gz
---
 src/conn-presence.c |    4 ++++
 src/connection.h    |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/conn-presence.c b/src/conn-presence.c
index 9498e6a..dbd5015 100644
--- a/src/conn-presence.c
+++ b/src/conn-presence.c
@@ -46,6 +46,10 @@ static const TpPresenceStatusOptionalArgumentSpec gabble_status_arguments[] = {
 static const TpPresenceStatusSpec gabble_statuses[] = {
   { "offline", TP_CONNECTION_PRESENCE_TYPE_OFFLINE, TRUE,
     gabble_status_arguments, NULL, NULL },
+  { "unknown", TP_CONNECTION_PRESENCE_TYPE_UNKNOWN, FALSE,
+    gabble_status_arguments, NULL, NULL },
+  { "error", TP_CONNECTION_PRESENCE_TYPE_ERROR, FALSE,
+    gabble_status_arguments, NULL, NULL },
   { "hidden", TP_CONNECTION_PRESENCE_TYPE_HIDDEN, TRUE, gabble_status_arguments,
     NULL, NULL },
   { "xa", TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY, TRUE,
diff --git a/src/connection.h b/src/connection.h
index 887191b..2b0ce4a 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -44,6 +44,8 @@ G_BEGIN_DECLS
 typedef enum
 {
   GABBLE_PRESENCE_OFFLINE = 0,
+  GABBLE_PRESENCE_UNKNOWN,
+  GABBLE_PRESENCE_ERROR,
   GABBLE_PRESENCE_HIDDEN,
   GABBLE_PRESENCE_XA,
   GABBLE_PRESENCE_AWAY,
-- 
1.5.6.3




More information about the Telepathy-commits mailing list