summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-19 12:02:45 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-19 13:01:11 +0200
commit93fa6f4eeb668896c683e928845eabafc8106a62 (patch)
treeaca069e21b6e4b6fdc3242c3ba57b738423b34e8 /src/connection.c
parentca5fa44a7d74dc1450b0409bbf91c08c453a94df (diff)
downloadtelepathy-salut-93fa6f4eeb668896c683e928845eabafc8106a62.tar.gz
protocol: implement get_avatar_details()
https://bugs.freedesktop.org/show_bug.cgi?id=69508
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 4886414c..186997bd 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -4169,3 +4169,37 @@ salut_connection_get_name (SalutPluginConnection *plugin_connection)
return connection->name;
}
+
+void
+salut_connection_dup_avatar_requirements (GStrv *supported_mime_types,
+ guint *min_height,
+ guint *min_width,
+ guint *rec_height,
+ guint *rec_width,
+ guint *max_height,
+ guint *max_width,
+ guint *max_bytes)
+{
+ if (supported_mime_types != NULL)
+ {
+ *supported_mime_types = g_strdupv ((gchar **) mimetypes);
+ }
+
+ if (min_height != NULL)
+ *min_height = AVATAR_MIN_PX;
+ if (min_width != NULL)
+ *min_width = AVATAR_MIN_PX;
+
+ if (rec_height != NULL)
+ *rec_height = AVATAR_REC_PX;
+ if (rec_width != NULL)
+ *rec_width = AVATAR_REC_PX;
+
+ if (max_height != NULL)
+ *max_height = AVATAR_MAX_PX;
+ if (max_width != NULL)
+ *max_width = AVATAR_MAX_PX;
+
+ if (max_bytes != NULL)
+ *max_bytes = AVATAR_MAX_BYTES;
+}