[telepathy-gabble/master] Add the RemoteCredentials property to GabbleCallStreamEndpoint.
Mike Ruprecht
mike.ruprecht at collabora.co.uk
Tue Dec 29 05:35:09 PST 2009
---
src/call-stream-endpoint.c | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/call-stream-endpoint.c b/src/call-stream-endpoint.c
index 5d43d07..2afaadd 100644
--- a/src/call-stream-endpoint.c
+++ b/src/call-stream-endpoint.c
@@ -56,6 +56,7 @@ enum
PROP_OBJECT_PATH = 1,
PROP_JINGLE_CONTENT,
PROP_REMOTE_CANDIDATES,
+ PROP_REMOTE_CREDENTIALS,
PROP_SELECTED_CANDIDATE,
PROP_STREAM_STATE,
PROP_TRANSPORT,
@@ -67,6 +68,7 @@ struct _GabbleCallStreamEndpointPrivate
gchar *object_path;
GabbleJingleContent *content;
+ GValueArray *remote_credentials;
GValueArray *selected_candidate;
guint stream_state;
};
@@ -120,6 +122,23 @@ gabble_call_stream_endpoint_get_property (GObject *object,
g_ptr_array_unref (arr);
break;
}
+ case PROP_REMOTE_CREDENTIALS:
+ {
+ if (priv->remote_credentials == NULL)
+ {
+ GValueArray *va = gabble_value_array_build (2,
+ G_TYPE_STRING, "",
+ G_TYPE_STRING, "",
+ G_TYPE_INVALID);
+ g_value_set_boxed (value, va);
+ g_boxed_free (G_TYPE_VALUE_ARRAY, va);
+ }
+ else
+ {
+ g_value_set_boxed (value, priv->remote_credentials);
+ }
+ break;
+ }
case PROP_SELECTED_CANDIDATE:
g_value_set_boxed (value, priv->selected_candidate);
break;
@@ -210,6 +229,7 @@ gabble_call_stream_endpoint_class_init (
GParamSpec *param_spec;
static TpDBusPropertiesMixinPropImpl endpoint_props[] = {
{ "RemoteCandidates", "remote-candidates", NULL },
+ { "RemoteCredentials", "remote-credentials", NULL },
{ "SelectedCandidate", "selected-candidate", NULL },
{ "StreamState", "stream-state", NULL },
{ "Transport", "transport", NULL },
@@ -262,6 +282,15 @@ gabble_call_stream_endpoint_class_init (
g_object_class_install_property (object_class, PROP_REMOTE_CANDIDATES,
param_spec);
+ param_spec = g_param_spec_boxed ("remote-credentials",
+ "RemoteCredentials",
+ "The remote credentials of this endpoint",
+ dbus_g_type_get_struct ("GValueArray",
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID),
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ g_object_class_install_property (object_class, PROP_REMOTE_CREDENTIALS,
+ param_spec);
+
param_spec = g_param_spec_boxed ("selected-candidate",
"SelectedCandidate",
"The candidate selected for this endpoint",
--
1.5.6.5
More information about the telepathy-commits
mailing list