Ejemplo n.º 1
0
// Closes the device and releases its resources.
func (device *Device) Close() int {
	C.freenect_set_user(device.dev, nil)
	return int(C.freenect_close_device(device.dev))
}
Ejemplo n.º 2
0
//FREENECTAPI int freenect_close_device(freenect_device *dev);
func (dev *Device) Close() int {
	return int(C.freenect_close_device(dev.ptr()))
}
Ejemplo n.º 3
0
// Destroy frees the Device object memory.
func (device *Device) Destroy() {

	C.freenect_close_device(device.device)
}