DeviceListener.simple


Description:

[ CCode ( has_construct_function = false ) ]
public DeviceListener.simple (owned DeviceListenerSimpleCB callback)

Creates a new DeviceListener with a specified callback function.

This method is similar to DeviceListener, but callback takes no user data.

Parameters:

callback

an DeviceListenerCB callback function, or NULL.

callback_destroyed

A DestroyNotify called when the listener is freed and data associated with the callback should be freed. It can be NULL.

Returns:

a pointer to a newly-created DeviceListener.




2022 vala-language.org