/*
- * Copyright (C) 2010-2014 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2015 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
return 0;
}
+GValue
+*solipa_gvalue_new_int (int i)
+{
+ GValue *gval;
+
+ gval = g_new0 (GValue, 1);
+ g_value_init (gval, G_TYPE_INT);
+ g_value_set_int (gval, i);
+
+ return gval;
+}
+
+GValue
+*solipa_gvalue_new_string (const gchar *str)
+{
+ GValue *gval;
+
+ gval = g_new0 (GValue, 1);
+ g_value_init (gval, G_TYPE_STRING);
+ g_value_set_string (gval, str);
+
+ return gval;
+}
+
+GValue
+*solipa_gvalue_new_boolean (gboolean b)
+{
+ GValue *gval;
+
+ gval = g_new0 (GValue, 1);
+ g_value_init (gval, G_TYPE_BOOLEAN);
+ g_value_set_boolean (gval, b);
+
+ return gval;
+}
+
+GValue
+*solipa_gvalue_new_float (gfloat f)
+{
+ GValue *gval;
+
+ gval = g_new0 (GValue, 1);
+ g_value_init (gval, G_TYPE_FLOAT);
+ g_value_set_float (gval, f);
+
+ return gval;
+}
+
/**
* This function is copied from
* http://bugzilla.gnome.org/show_bug.cgi?id=524831.
/*
- * Copyright (C) 2010-2014 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2015 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
int solipa_compare_version (const gchar *ver1, const gchar *ver2, const gchar *delimiters, guint *part);
+GValue *solipa_gvalue_new_int (int i);
+GValue *solipa_gvalue_new_string (const gchar *str);
+GValue *solipa_gvalue_new_boolean (gboolean b);
+GValue *solipa_gvalue_new_float (gfloat f);
+
gchar *g_mkdtemp (gchar *tmpl);