Ejemplo n.º 1
0
func (l *list) HasType(_type int) bool {
	r := C.xmmsv_list_has_type(l.data, C.xmmsv_type_t(_type))
	if int(r) != 0 {
		return true
	}
	return false
}
Ejemplo n.º 2
0
func (l *list) RestrictType(_type int) error {
	r := C.xmmsv_list_restrict_type(l.data, C.xmmsv_type_t(_type))
	if int(r) == 0 {
		return fmt.Errorf("Restrict type failed")
	}
	return nil
}
Ejemplo n.º 3
0
func (x *Value) IsType(t int) bool {
	if int(C.xmmsv_is_type(x.data, C.xmmsv_type_t(t))) == 1 {
		return true
	}
	return false
}