GType bb_param_spec_duration_get_type (void) { static GType rv = 0; if (rv == 0) { bb_param_spec_type_info_duration.value_type = BB_TYPE_DURATION; rv = g_param_type_register_static ("BbParamSpecDuration", &bb_param_spec_type_info_duration); } return rv; }
/* Register midgard_longtext paramspec */ GType midgard_param_longtext_get_type(void) { static GType type = 0; if (type == 0) { { const GParamSpecTypeInfo pspec_info = { sizeof (MidgardParamSpecLongtext), /* instance_size */ 16, /* n_preallocs */ _param_string_init, /* instance_init */ MGD_TYPE_LONGTEXT, /* value_type */ _param_string_finalize, /* finalize */ _param_string_set_default, /* value_set_default */ _param_string_validate, /* value_validate */ _param_string_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("MidgardParamLongtext", &pspec_info); } } return type; }
GType eva_param_fd_get_type () { static GType type = 0; if (type == 0) { static GParamSpecTypeInfo pspec_info = { sizeof (EvaParamSpecFd), /* instance_size */ 4, /* n_preallocs */ param_fd_init, /* instance_init */ 0, /* value_type */ NULL, /* finalize */ param_fd_set_default, /* value_set_default */ param_fd_validate, /* value_validate */ param_fd_values_cmp, /* values_cmp */ }; pspec_info.value_type = EVA_TYPE_FD; type = g_param_type_register_static ("EvaParamFd", &pspec_info); } return type; }
GType _nm_param_spec_specialized_get_type (void) { static GType type; if (G_UNLIKELY (type) == 0) { static const GParamSpecTypeInfo pspec_info = { sizeof (NMParamSpecSpecialized), 0, param_specialized_init, G_TYPE_OBJECT, /* value_type */ NULL, /* finalize */ param_specialized_set_default, param_specialized_validate, param_specialized_values_cmp, }; type = g_param_type_register_static ("NMParamSpecSpecialized", &pspec_info); } return type; }
GType gst_vaapi_param_spec_id_get_type(void) { static GType type; if (G_UNLIKELY(type == 0)) { static GParamSpecTypeInfo pspec_info = { sizeof(GstVaapiParamSpecID), /* instance_size */ 0, /* n_preallocs */ gst_vaapi_param_id_init, /* instance_init */ G_TYPE_INVALID, /* value_type */ NULL, /* finalize */ gst_vaapi_param_id_set_default, /* value_set_default */ gst_vaapi_param_id_validate, /* value_validate */ gst_vaapi_param_id_compare, /* values_cmp */ }; pspec_info.value_type = GST_VAAPI_TYPE_ID; type = g_param_type_register_static("GstVaapiParamSpecID", &pspec_info); } return type; }
GType gst_param_spec_mini_object_get_type (void) { static GType type; if (G_UNLIKELY (type) == 0) { static const GParamSpecTypeInfo pspec_info = { sizeof (GstParamSpecMiniObject), /* instance_size */ 16, /* n_preallocs */ param_mini_object_init, /* instance_init */ G_TYPE_OBJECT, /* value_type */ NULL, /* finalize */ param_mini_object_set_default, /* value_set_default */ param_mini_object_validate, /* value_validate */ param_mini_object_values_cmp, /* values_cmp */ }; /* FIXME 0.11: Should really be GstParamSpecMiniObject */ type = g_param_type_register_static ("GParamSpecMiniObject", &pspec_info); } return type; }
GType gst_param_spec_fraction_get_type (void) { static GType type; /* 0 */ /* register GST_TYPE_PARAM_FRACTION */ if (type == 0) { static GParamSpecTypeInfo pspec_info = { sizeof (GstParamSpecFraction), /* instance_size */ 0, /* n_preallocs */ _gst_param_fraction_init, /* instance_init */ G_TYPE_INVALID, /* value_type */ NULL, /* finalize */ _gst_param_fraction_set_default, /* value_set_default */ _gst_param_fraction_validate, /* value_validate */ _gst_param_fraction_values_cmp, /* values_cmp */ }; pspec_info.value_type = GST_TYPE_FRACTION; type = g_param_type_register_static ("GstParamFraction", &pspec_info); } return type; }
GType chupa_param_time_val_get_type (void) { static GType type = 0; if (type == 0) { GParamSpecTypeInfo pspec_info = { sizeof(ChupaParamSpecTimeVal), /* instance_size */ 16, /* n_preallocs */ param_time_val_init, /* instance_init */ 0, /* value_type */ param_time_val_finalize, /* finalize */ param_time_val_set_default, /* value_set_default */ param_time_val_validate, /* value_validate */ param_time_val_values_cmp, /* values_cmp */ }; pspec_info.value_type = CHUPA_TYPE_TIME_VAL; type = g_param_type_register_static(g_intern_static_string("GParamTimeVal"), &pspec_info); } return type; }
GType glade_param_objects_get_type (void) { static GType objects_type = 0; if (objects_type == 0) { static /* const */ GParamSpecTypeInfo pspec_info = { sizeof (GladeParamSpecObjects), /* instance_size */ 16, /* n_preallocs */ param_objects_init, /* instance_init */ 0xdeadbeef, /* value_type, assigned further down */ NULL, /* finalize */ param_objects_set_default, /* value_set_default */ param_objects_validate, /* value_validate */ param_objects_values_cmp, /* values_cmp */ }; pspec_info.value_type = GLADE_TYPE_GLIST; objects_type = g_param_type_register_static ("GladeParamObjects", &pspec_info); } return objects_type; }
GType clutter_param_units_get_type (void) { static GType pspec_type = 0; if (G_UNLIKELY (pspec_type == 0)) { const GParamSpecTypeInfo pspec_info = { sizeof (ClutterParamSpecUnits), 16, param_units_init, CLUTTER_TYPE_UNITS, NULL, param_units_set_default, param_units_validate, param_units_values_cmp, }; pspec_type = g_param_type_register_static (I_("ClutterParamSpecUnit"), &pspec_info); } return pspec_type; }
GType clutter_param_fixed_get_type (void) { static GType pspec_type = 0; if (G_UNLIKELY (pspec_type == 0)) { const GParamSpecTypeInfo pspec_info = { sizeof (ClutterParamSpecFixed), 16, param_fixed_init, COGL_TYPE_FIXED, NULL, param_fixed_set_default, param_fixed_validate, param_fixed_values_cmp, }; pspec_type = g_param_type_register_static (I_("ClutterParamSpecFixed"), &pspec_info); } return pspec_type; }
void g_param_spec_types_init (void) /* sync with gtype.c */ { const guint n_types = 20; GType type, *spec_types, *spec_types_bound; g_param_spec_types = g_new0 (GType, n_types); spec_types = g_param_spec_types; spec_types_bound = g_param_spec_types + n_types; /* G_TYPE_PARAM_CHAR */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecChar), /* instance_size */ 16, /* n_preallocs */ param_char_init, /* instance_init */ G_TYPE_CHAR, /* value_type */ NULL, /* finalize */ param_char_set_default, /* value_set_default */ param_char_validate, /* value_validate */ param_int_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamChar", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_CHAR); } /* G_TYPE_PARAM_UCHAR */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecUChar), /* instance_size */ 16, /* n_preallocs */ param_uchar_init, /* instance_init */ G_TYPE_UCHAR, /* value_type */ NULL, /* finalize */ param_uchar_set_default, /* value_set_default */ param_uchar_validate, /* value_validate */ param_uint_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamUChar", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_UCHAR); } /* G_TYPE_PARAM_BOOLEAN */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecBoolean), /* instance_size */ 16, /* n_preallocs */ NULL, /* instance_init */ G_TYPE_BOOLEAN, /* value_type */ NULL, /* finalize */ param_boolean_set_default, /* value_set_default */ param_boolean_validate, /* value_validate */ param_int_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamBoolean", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_BOOLEAN); } /* G_TYPE_PARAM_INT */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecInt), /* instance_size */ 16, /* n_preallocs */ param_int_init, /* instance_init */ G_TYPE_INT, /* value_type */ NULL, /* finalize */ param_int_set_default, /* value_set_default */ param_int_validate, /* value_validate */ param_int_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamInt", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_INT); } /* G_TYPE_PARAM_UINT */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecUInt), /* instance_size */ 16, /* n_preallocs */ param_uint_init, /* instance_init */ G_TYPE_UINT, /* value_type */ NULL, /* finalize */ param_uint_set_default, /* value_set_default */ param_uint_validate, /* value_validate */ param_uint_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamUInt", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_UINT); } /* G_TYPE_PARAM_LONG */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecLong), /* instance_size */ 16, /* n_preallocs */ param_long_init, /* instance_init */ G_TYPE_LONG, /* value_type */ NULL, /* finalize */ param_long_set_default, /* value_set_default */ param_long_validate, /* value_validate */ param_long_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamLong", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_LONG); } /* G_TYPE_PARAM_ULONG */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecULong), /* instance_size */ 16, /* n_preallocs */ param_ulong_init, /* instance_init */ G_TYPE_ULONG, /* value_type */ NULL, /* finalize */ param_ulong_set_default, /* value_set_default */ param_ulong_validate, /* value_validate */ param_ulong_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamULong", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_ULONG); } /* G_TYPE_PARAM_INT64 */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecInt64), /* instance_size */ 16, /* n_preallocs */ param_int64_init, /* instance_init */ G_TYPE_INT64, /* value_type */ NULL, /* finalize */ param_int64_set_default, /* value_set_default */ param_int64_validate, /* value_validate */ param_int64_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamInt64", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_INT64); } /* G_TYPE_PARAM_UINT64 */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecUInt64), /* instance_size */ 16, /* n_preallocs */ param_uint64_init, /* instance_init */ G_TYPE_UINT64, /* value_type */ NULL, /* finalize */ param_uint64_set_default, /* value_set_default */ param_uint64_validate, /* value_validate */ param_uint64_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamUInt64", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_UINT64); } /* G_TYPE_PARAM_UNICHAR */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecUnichar), /* instance_size */ 16, /* n_preallocs */ param_unichar_init, /* instance_init */ G_TYPE_UINT, /* value_type */ NULL, /* finalize */ param_unichar_set_default, /* value_set_default */ param_unichar_validate, /* value_validate */ param_unichar_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamUnichar", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_UNICHAR); } /* G_TYPE_PARAM_ENUM */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecEnum), /* instance_size */ 16, /* n_preallocs */ param_enum_init, /* instance_init */ G_TYPE_ENUM, /* value_type */ param_enum_finalize, /* finalize */ param_enum_set_default, /* value_set_default */ param_enum_validate, /* value_validate */ param_long_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamEnum", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_ENUM); } /* G_TYPE_PARAM_FLAGS */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecFlags), /* instance_size */ 16, /* n_preallocs */ param_flags_init, /* instance_init */ G_TYPE_FLAGS, /* value_type */ param_flags_finalize, /* finalize */ param_flags_set_default, /* value_set_default */ param_flags_validate, /* value_validate */ param_ulong_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamFlags", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_FLAGS); } /* G_TYPE_PARAM_FLOAT */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecFloat), /* instance_size */ 16, /* n_preallocs */ param_float_init, /* instance_init */ G_TYPE_FLOAT, /* value_type */ NULL, /* finalize */ param_float_set_default, /* value_set_default */ param_float_validate, /* value_validate */ param_float_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamFloat", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_FLOAT); } /* G_TYPE_PARAM_DOUBLE */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecDouble), /* instance_size */ 16, /* n_preallocs */ param_double_init, /* instance_init */ G_TYPE_DOUBLE, /* value_type */ NULL, /* finalize */ param_double_set_default, /* value_set_default */ param_double_validate, /* value_validate */ param_double_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamDouble", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_DOUBLE); } /* G_TYPE_PARAM_STRING */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecString), /* instance_size */ 16, /* n_preallocs */ param_string_init, /* instance_init */ G_TYPE_STRING, /* value_type */ param_string_finalize, /* finalize */ param_string_set_default, /* value_set_default */ param_string_validate, /* value_validate */ param_string_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamString", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_STRING); } /* G_TYPE_PARAM_PARAM */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecParam), /* instance_size */ 16, /* n_preallocs */ param_param_init, /* instance_init */ G_TYPE_PARAM, /* value_type */ NULL, /* finalize */ param_param_set_default, /* value_set_default */ param_param_validate, /* value_validate */ param_pointer_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamParam", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_PARAM); } /* G_TYPE_PARAM_BOXED */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecBoxed), /* instance_size */ 4, /* n_preallocs */ param_boxed_init, /* instance_init */ G_TYPE_BOXED, /* value_type */ NULL, /* finalize */ param_boxed_set_default, /* value_set_default */ param_boxed_validate, /* value_validate */ param_boxed_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamBoxed", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_BOXED); } /* G_TYPE_PARAM_POINTER */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecPointer), /* instance_size */ 0, /* n_preallocs */ param_pointer_init, /* instance_init */ G_TYPE_POINTER, /* value_type */ NULL, /* finalize */ param_pointer_set_default, /* value_set_default */ param_pointer_validate, /* value_validate */ param_pointer_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamPointer", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_POINTER); } /* G_TYPE_PARAM_VALUE_ARRAY */ { static /* const */ GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecValueArray), /* instance_size */ 0, /* n_preallocs */ param_value_array_init, /* instance_init */ 0xdeadbeef, /* value_type, assigned further down */ param_value_array_finalize, /* finalize */ param_value_array_set_default, /* value_set_default */ param_value_array_validate, /* value_validate */ param_value_array_values_cmp, /* values_cmp */ }; pspec_info.value_type = G_TYPE_VALUE_ARRAY; type = g_param_type_register_static ("GParamValueArray", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_VALUE_ARRAY); } /* G_TYPE_PARAM_OBJECT */ { static const GParamSpecTypeInfo pspec_info = { sizeof (GParamSpecObject), /* instance_size */ 16, /* n_preallocs */ param_object_init, /* instance_init */ G_TYPE_OBJECT, /* value_type */ NULL, /* finalize */ param_object_set_default, /* value_set_default */ param_object_validate, /* value_validate */ param_object_values_cmp, /* values_cmp */ }; type = g_param_type_register_static ("GParamObject", &pspec_info); *spec_types++ = type; g_assert (type == G_TYPE_PARAM_OBJECT); } g_assert (spec_types == spec_types_bound); }