awesome/awesome-version-internal.h
Emmanuel Lepage Vallee ee80fe052f init: Add an API level concept to capi.
The API level concept is something used by other projects such as
Android and iOS to allow deprecated features to be removed and the
bahavior to be altered without breaking compability with existing
code.

The same will apply to AwesomeWM. The current API level is "4" and
as long as config use this, no deprecation or bahavior change will
be exposed. If the user sets it to an higher value or we release
the next major version and new users start to use the, then current,
default config, they will use the new API level.

The the far future, if ever, we could fork the entire Lua libraries
to support legacy APIs. This would only require to keep the core
API support for those legacy calls. In the meantime, `gears.debug`
will use this to manage the deprecation and some conditional code
will be added as a last resort attempt to preserve behavior
compatibility while moving forward with breaking changes.
2020-02-08 17:18:01 -05:00

10 lines
350 B
C

#ifndef _AWE_VERSION_INTERNAL_H_
#define _AWE_VERSION_INTERNAL_H_
#define AWESOME_VERSION "@AWESOME_VERSION@"
#define AWESOME_RELEASE "@AWESOME_RELEASE@"
#define AWESOME_API_LEVEL @AWESOME_API_LEVEL@
#endif //_AWE_VERSION_INTERNAL_H_
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80