summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-30 15:37:40 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-04 11:05:33 -0400
commit0c12ae7704d179192e2035542a33b2ad6cfc2af7 (patch)
treefac54414bf837855d8785d36d1634ef2078a3797
parent352211e1e3365375cd3c4b7f7e53ca9a70a4a390 (diff)
Aliasing: Implement AliasFlags property
https://bugs.freedesktop.org/show_bug.cgi?id=69964
-rw-r--r--src/sip-connection.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/sip-connection.c b/src/sip-connection.c
index 6130759..9f9a100 100644
--- a/src/sip-connection.c
+++ b/src/sip-connection.c
@@ -89,6 +89,20 @@ enum
LAST_PROPERTY
};
+static TpDBusPropertiesMixinPropImpl conn_aliasing_properties[] = {
+ { "AliasFlags", GUINT_TO_POINTER (0), NULL },
+ { NULL }
+};
+
+static void
+conn_aliasing_properties_getter (GObject *object,
+ GQuark interface,
+ GQuark name,
+ GValue *value,
+ gpointer getter_data)
+{
+ g_value_set_uint (value, GPOINTER_TO_UINT (getter_data));
+}
static void
priv_value_set_url_as_string (GValue *value, const url_t *url)
@@ -446,6 +460,14 @@ rakia_connection_class_init (RakiaConnectionClass *klass)
TpBaseConnectionClass *base_class = TP_BASE_CONNECTION_CLASS (klass);
RakiaBaseConnectionClass *sip_class = RAKIA_BASE_CONNECTION_CLASS (klass);
GParamSpec *param_spec;
+ static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
+ { TP_IFACE_CONNECTION_INTERFACE_ALIASING,
+ conn_aliasing_properties_getter,
+ NULL,
+ conn_aliasing_properties,
+ },
+ { NULL }
+ };
/* Implement pure-virtual methods */
sip_class->create_handle = rakia_connection_create_nua_handle;
@@ -468,6 +490,8 @@ rakia_connection_class_init (RakiaConnectionClass *klass)
object_class->set_property = rakia_connection_set_property;
object_class->get_property = rakia_connection_get_property;
+ klass->properties_class.interfaces = prop_interfaces;
+
#define INST_PROP(x) \
g_object_class_install_property (object_class, x, param_spec)