方法
GLibVariantTypeequal
声明 [src]
gboolean
g_variant_type_equal (
gconstpointer type1,
gconstpointer type2
)
说明 [src]
比较 type1 和 type2 是否相等。
只有当两种类型完全相同时才返回 true。即使一种类型是不确定类型,而另一种类型是它的子类型,如果不完全相等,则返回 false。如果您想检查子类型,请使用 g_variant_type_is_subtype_of()。
type1 和 type2 的参数类型仅为 gconstpointer,以允许与 GHashTable 一起使用而无需函数指针转换。对于这两个参数,必须提供有效的 GVariantType。
参数
type2-
类型:
GVariantType要比较的另一个类型。