![]() |
![]() |
![]() |
libtinynotify Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <tinynotify.h> #define LIBTINYNOTIFY_HAS_EVENT_API #define LIBTINYNOTIFY_HAS_ACTIONS
As of 0.1.1, libtinynotify provides a set of macro definitions listing available features. This way, one doesn't have to depend on random version numbers nor perform configure checks -- it is enough to use #ifdef with one of the predefined names.
#define LIBTINYNOTIFY_HAS_EVENT_API 1
Denotes that libtinynotify has event API with notify_session_dispatch()
method and relevant types and constants. This also implies that it is
capable of handling 'close' event.
#define LIBTINYNOTIFY_HAS_ACTIONS 1
Denotes that libtinynotify has support for actions; basically,
notification_bind_action()
.