NotifyFeatures

NotifyFeatures — feature check macros

Synopsis

#include <tinynotify.h>

#define             LIBTINYNOTIFY_HAS_EVENT_API
#define             LIBTINYNOTIFY_HAS_ACTIONS

Description

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.

Details

LIBTINYNOTIFY_HAS_EVENT_API

#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.


LIBTINYNOTIFY_HAS_ACTIONS

#define LIBTINYNOTIFY_HAS_ACTIONS 1

Denotes that libtinynotify has support for actions; basically, notification_bind_action().