[ 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.
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. |
a pointer to a newly-created DeviceListener. |