diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2011-06-20 12:52:14 +0200 |
---|---|---|
committer | Christian Kellner <gicmo@gnome.org> | 2011-08-25 21:18:39 +0200 |
commit | aec7c42dc109e3cf19cfbe25c0a2b1aa6d56e8b0 (patch) | |
tree | 0c14eec333e56aa46ca2bc0fabfd141356b0c4db /daemon/gvfsafpconnection.c | |
parent | 4b505fd08dd144dc3393833ff83bcd2207568ff9 (diff) | |
download | gvfs-aec7c42dc109e3cf19cfbe25c0a2b1aa6d56e8b0.tar.gz |
afp: use UTF-8 ServerName if available
Diffstat (limited to 'daemon/gvfsafpconnection.c')
-rw-r--r-- | daemon/gvfsafpconnection.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c index 4745406c..a10eea66 100644 --- a/daemon/gvfsafpconnection.c +++ b/daemon/gvfsafpconnection.c @@ -50,6 +50,18 @@ g_vfs_afp_name_ref (GVfsAfpName *afp_name) g_atomic_int_inc (&afp_name->ref_count); } +char * +g_vfs_afp_name_get_string (GVfsAfpName *afp_name) +{ + char *str; + + str = g_malloc (afp_name->len + 1); + memcpy (str, afp_name->str, afp_name->len); + str[afp_name->len] = 0; + + return str; +} + GVfsAfpName * g_vfs_afp_name_new (guint32 text_encoding, const gchar *str, gsize len) { |