screen_destroy_device()

Destroy a input device and frees associated resources.

Synopsis:

#include <screen/screen.h>
 
int screen_destroy_device(screen_device_t dev)

Arguments:

dev

The handle of the input device that you want to destroy.

Library:

libscreen

Description:

Function Type: Flushing Execution

This function destroys the a input device object associated with the device handle. Any resources created for this input device will be released. Input devices created with screen_create_device_type() must be destroyed with this function.

This function is of type flushing execution because must there be any entries in the command buffer that have reference to this device, the entries will be flushed and processed before destroying the device.

Returns:

0 if the input device was destroyed, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details). Note that the error may also have been caused by any delayed execution function that's just been flushed.