[Telepathy-commits] [telepathy-mission-control/master] Export the online requests list

Alberto Mardegan alberto.mardegan at nokia.com
Thu Jan 8 04:10:11 PST 2009


Let other modules access the online requests list.
It will be needed by mcd-account-requests.c to get the channel requests that
are waiting for a connection (for implementing che cancel functionality).
---
 src/mcd-account-priv.h |    9 +++++++++
 src/mcd-account.c      |   13 ++++++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/mcd-account-priv.h b/src/mcd-account-priv.h
index 82efa43..8017511 100644
--- a/src/mcd-account-priv.h
+++ b/src/mcd-account-priv.h
@@ -55,6 +55,15 @@ G_GNUC_INTERNAL
 void _mcd_account_online_request_completed (McdAccount *account,
                                             GError *error);
 
+typedef struct {
+    McdOnlineRequestCb callback;
+    gpointer user_data;
+} McdOnlineRequestData;
+
+G_GNUC_INTERNAL
+GList *_mcd_account_get_online_requests (McdAccount *account);
+
+
 static inline void
 mcd_account_write_conf (McdAccount *account)
 {
diff --git a/src/mcd-account.c b/src/mcd-account.c
index aca3a39..dc4021c 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -140,11 +140,6 @@ struct _McdAccountPrivate
     guint properties_source;
 };
 
-typedef struct {
-    McdOnlineRequestCb callback;
-    gpointer user_data;
-} McdOnlineRequestData;
-
 enum
 {
     PROP_0,
@@ -2029,6 +2024,14 @@ _mcd_account_online_request_completed (McdAccount *account, GError *error)
     priv->online_requests = NULL;
 }
 
+GList *
+_mcd_account_get_online_requests (McdAccount *account)
+{
+    g_return_val_if_fail (MCD_IS_ACCOUNT (account), NULL);
+
+    return account->priv->online_requests;
+}
+
 static inline void
 process_online_requests (McdAccount *account,
 			 TpConnectionStatus status,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list