nm-version: libnm Reference Manual

## nm-version nm-version |

## Functions

#define | NM_MAJOR_VERSION
#define | NM_MINOR_VERSION
#define | NM_MICRO_VERSION
#define | NM_CHECK_VERSION()
#define | NM_ENCODE_VERSION()
#define | NM_VERSION_0_9_8
#define | NM_VERSION_0_9_10
#define | NM_VERSION_1_0
#define | NM_VERSION_1_0_2
#define | NM_VERSION_1_0_4
#define | NM_VERSION_MIN_REQUIRED
#define | NM_VERSION_MAX_ALLOWED
#define | NM_DEPRECATED_IN_0_9_10_FOR()
#define | NM_DEPRECATED_IN_1_0_FOR()

## Types and Values

#define | NM_VERSION_CUR_STABLE
#define | NM_VERSION_NEXT_STABLE
#define | NM_DEPRECATED_IN_0_9_10
#define | NM_DEPRECATED_IN_1_0
#define | NM_AVAILABLE_IN_0_9_10
#define | NM_AVAILABLE_IN_1_0
#define | NM_AVAILABLE_IN_1_0_4

## Description

## Functions

### NM_MAJOR_VERSION

    #define NM_MAJOR_VERSION (1)

Evaluates to the major version number of NetworkManager which this source is compiled against.

### NM_MINOR_VERSION

    #define NM_MINOR_VERSION (0)

Evaluates to the minor version number of NetworkManager which this source is compiled against.

### NM_MICRO_VERSION

    #define NM_MICRO_VERSION (4)

Evaluates to the micro version number of NetworkManager which this source compiled against.

### NM_CHECK_VERSION()

    #define             NM_CHECK_VERSION(major,minor,micro)

#### Parameters

major | major version (e.g. 1 for version 1.2.5) |
minor | minor version (e.g. 2 for version 1.2.5) |
micro | micro version (e.g. 5 for version 1.2.5) |

#### Returns

`TRUE` if the version of the NetworkManager header files is the same as or newer than the passed-in version.

### NM_ENCODE_VERSION()

    #define NM_ENCODE_VERSION(major,minor,micro) ((major) << 16 | (minor) << 8 | (micro))

### NM_VERSION_0_9_8

    #define NM_VERSION_0_9_8  (NM_ENCODE_VERSION (0, 9, 8))

### NM_VERSION_0_9_10

    #define NM_VERSION_0_9_10 (NM_ENCODE_VERSION (0, 9, 10))

### NM_VERSION_1_0

    #define NM_VERSION_1_0    (NM_ENCODE_VERSION (1, 0, 0))

### NM_VERSION_1_0_2

    #define NM_VERSION_1_0_2  (NM_ENCODE_VERSION (1, 0, 2))

### NM_VERSION_1_0_4

    #define NM_VERSION_1_0_4  (NM_ENCODE_VERSION (1, 0, 4))

### NM_VERSION_MIN_REQUIRED

    # define NM_VERSION_MIN_REQUIRED (NM_VERSION_CUR_STABLE)

### NM_VERSION_MAX_ALLOWED

    # define NM_VERSION_MAX_ALLOWED (NM_VERSION_CUR_STABLE)

### NM_DEPRECATED_IN_0_9_10_FOR()

    # define NM_DEPRECATED_IN_0_9_10_FOR(f) G_DEPRECATED_FOR(f)

### NM_DEPRECATED_IN_1_0_FOR()

    # define NM_DEPRECATED_IN_1_0_FOR(f)    G_DEPRECATED_FOR(f)

## Types and Values

### NM_VERSION_CUR_STABLE

    #define NM_VERSION_CUR_STABLE  NM_VERSION_1_0_2

### NM_VERSION_NEXT_STABLE

    #define NM_VERSION_NEXT_STABLE NM_VERSION_1_0_4

### NM_DEPRECATED_IN_0_9_10

    # define NM_DEPRECATED_IN_0_9_10        G_DEPRECATED

### NM_DEPRECATED_IN_1_0

    # define NM_DEPRECATED_IN_1_0           G_DEPRECATED

### NM_AVAILABLE_IN_0_9_10

    # define NM_AVAILABLE_IN_0_9_10         G_UNAVAILABLE(0.9,10)

### NM_AVAILABLE_IN_1_0

    # define NM_AVAILABLE_IN_1_0            G_UNAVAILABLE(1,0)

### NM_AVAILABLE_IN_1_0_4

    # define NM_AVAILABLE_IN_1_0_4          G_UNAVAILABLE(1,0.4)