• Thomas Haller's avatar
    version: combine NM_VERSION_CUR_STABLE and NM_VERSION_NEXT_STABLE · 8a040c68
    Thomas Haller authored
    We don't need to have two version defines "CUR" and "NEXT".
    
    The main purpose of these macros (if not their only), is to
    make NM_AVAILABLE_IN_* and NM_DEPRECATED_IN_* macros work.
    
    1) At the precise commit of a release, "CUR" and "NEXT" must be identical,
    because whenever the user configures NM_VERSION_MIN_REQUIRED and
    NM_VERSION_MAX_ALLOWED, then they both compare against the current
    version, at which point "CUR" == "NEXT".
    
    2) Every other commit aside the release, is a development version that leads
    up the the next coming release. But as far as versioning is concerned, such
    a development version should be treated like that future release. It's unstable
    API and it may or may not be close to later API of the release. But
    we shall treat it as that version. Hence, also in this case, we want to
    set both "NM_VERSION_CUR_STABLE" and again NEXT to the future version.
    
    This makes NM_VERSION_NEXT_STABLE redundant.
    
    Previously, the separation between current and next version would for
    example allow that NM_VERSION_CUR_STABLE is the previously release
    stable API, and NM_VERSION_NEXT_STABLE is the version of the next upcoming
    stable API. So, we could allow "examples" to make use of development
    API, but other(?) internal code still restrict to unstable API. But it's
    unclear which other code would want to avoid current development.
    
    Also, the points 1) and 2) were badly understood. Note that for our
    previousy releases, we usually didn't bump the macros at the stable
    release (and if we did, we didn't set them to be the same). While using
    two macros might be more powerful, it is hard to grok and easy to
    forget to bump the macros a the right time. One macro shall suffice.
    
    All this also means, that *immediately* after making a new release, we shall
    bump the version number in `configure.ac` and "NM_VERSION_CUR_STABLE".
    8a040c68
Name
Last commit
Last update
..
tests Loading commit data...
COPYING Loading commit data...
NetworkManager.h Loading commit data...
NetworkManagerVPN.h Loading commit data...
crypto.c Loading commit data...
crypto.h Loading commit data...
crypto_gnutls.c Loading commit data...
crypto_nss.c Loading commit data...
libnm-util.pc.in Loading commit data...
libnm-util.ver Loading commit data...
meson.build Loading commit data...
nm-connection.c Loading commit data...
nm-connection.h Loading commit data...
nm-dbus-glib-types.h Loading commit data...
nm-gvaluearray-compat.h Loading commit data...
nm-param-spec-specialized.c Loading commit data...
nm-param-spec-specialized.h Loading commit data...
nm-setting-8021x.c Loading commit data...
nm-setting-8021x.h Loading commit data...
nm-setting-adsl.c Loading commit data...
nm-setting-adsl.h Loading commit data...
nm-setting-bluetooth.c Loading commit data...
nm-setting-bluetooth.h Loading commit data...
nm-setting-bond.c Loading commit data...
nm-setting-bond.h Loading commit data...
nm-setting-bridge-port.c Loading commit data...
nm-setting-bridge-port.h Loading commit data...
nm-setting-bridge.c Loading commit data...
nm-setting-bridge.h Loading commit data...
nm-setting-cdma.c Loading commit data...
nm-setting-cdma.h Loading commit data...
nm-setting-connection.c Loading commit data...
nm-setting-connection.h Loading commit data...
nm-setting-dcb.c Loading commit data...
nm-setting-dcb.h Loading commit data...
nm-setting-generic.c Loading commit data...
nm-setting-generic.h Loading commit data...
nm-setting-gsm.c Loading commit data...
nm-setting-gsm.h Loading commit data...
nm-setting-infiniband.c Loading commit data...
nm-setting-infiniband.h Loading commit data...
nm-setting-ip4-config.c Loading commit data...
nm-setting-ip4-config.h Loading commit data...
nm-setting-ip6-config.c Loading commit data...
nm-setting-ip6-config.h Loading commit data...
nm-setting-olpc-mesh.c Loading commit data...
nm-setting-olpc-mesh.h Loading commit data...
nm-setting-ppp.c Loading commit data...
nm-setting-ppp.h Loading commit data...
nm-setting-pppoe.c Loading commit data...
nm-setting-pppoe.h Loading commit data...
nm-setting-private.h Loading commit data...
nm-setting-serial.c Loading commit data...
nm-setting-serial.h Loading commit data...
nm-setting-team-port.c Loading commit data...
nm-setting-team-port.h Loading commit data...
nm-setting-team.c Loading commit data...
nm-setting-team.h Loading commit data...
nm-setting-vlan.c Loading commit data...
nm-setting-vlan.h Loading commit data...
nm-setting-vpn.c Loading commit data...
nm-setting-vpn.h Loading commit data...
nm-setting-wimax.c Loading commit data...
nm-setting-wimax.h Loading commit data...
nm-setting-wired.c Loading commit data...
nm-setting-wired.h Loading commit data...
nm-setting-wireless-security.c Loading commit data...
nm-setting-wireless-security.h Loading commit data...
nm-setting-wireless.c Loading commit data...
nm-setting-wireless.h Loading commit data...
nm-setting.c Loading commit data...
nm-setting.h Loading commit data...
nm-utils-enum-types.c.template Loading commit data...
nm-utils-enum-types.h.template Loading commit data...
nm-utils-private.h Loading commit data...
nm-utils.c Loading commit data...
nm-utils.h Loading commit data...
nm-value-transforms.c Loading commit data...
nm-version.h Loading commit data...