summaryrefslogtreecommitdiffstats
path: root/ucad.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 15:31:18 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-02-18 15:31:18 +0100
commit127005ae839abd13c1ba53a719be0500f07fb610 (patch)
tree0fa6d7892a12d079f83c96a16d2f70bcfb5b5086 /ucad.c
parent78ef5159fcc54dc8d4fa30a5949a8676e0d304c0 (diff)
downloaduca-net-127005ae839abd13c1ba53a719be0500f07fb610.tar.gz
uca-net-127005ae839abd13c1ba53a719be0500f07fb610.tar.bz2
uca-net-127005ae839abd13c1ba53a719be0500f07fb610.tar.xz
uca-net-127005ae839abd13c1ba53a719be0500f07fb610.zip
Support custom string properties
Diffstat (limited to 'ucad.c')
-rw-r--r--ucad.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ucad.c b/ucad.c
index 490964a..02e2f95 100644
--- a/ucad.c
+++ b/ucad.c
@@ -124,6 +124,10 @@ serialize_param_spec (GParamSpec *pspec, UcaNetMessageProperty *prop)
case G_TYPE_BOOLEAN:
prop->spec.gboolean.default_value = ((GParamSpecBoolean *) pspec)->default_value;
break;
+ case G_TYPE_STRING:
+ strncpy (prop->spec.gstring.default_value, ((GParamSpecString *) pspec)->default_value,
+ sizeof (prop->spec.gstring.default_value));
+ break;
CASE_NUMERIC (G_TYPE_INT, gint, GParamSpecInt)
break;
CASE_NUMERIC (G_TYPE_UINT, guint, GParamSpecUInt)