param: Add g_param_value_is_valid

This is wrapper for the new value_is_valid vfunc,
but it falls back to using value_validate to
obtain the same information.
This commit is contained in:
Matthias Clasen
2022-05-20 08:46:39 -04:00
parent bdc8b025c5
commit dacfe8c88a
3 changed files with 49 additions and 0 deletions

View File

@@ -326,6 +326,9 @@ gboolean g_param_value_defaults (GParamSpec *pspec,
GLIB_AVAILABLE_IN_ALL
gboolean g_param_value_validate (GParamSpec *pspec,
GValue *value);
GLIB_AVAILABLE_IN_2_74
gboolean g_param_value_is_valid (GParamSpec *pspec,
const GValue *value);
GLIB_AVAILABLE_IN_ALL
gboolean g_param_value_convert (GParamSpec *pspec,
const GValue *src_value,