## GNet GNet — GNet utility functions and macros |

## Synopsis

    #define     GNET_EXPORT
    #define     GNET_CHECK_VERSION              (major,minor,micro)
    void        gnet_init                       (void);

## Description

The main GNet module provides the function `gnet_init()`. This function should be called at the beginning of any GNet program.

## Details

### GNET_EXPORT

    #define     GNET_EXPORT

Declares a variable exported. Used interally.

### GNET_CHECK_VERSION()

    #define     GNET_CHECK_VERSION(major,minor,micro)

Checks if the version given is compatable with this version of the library. For example, GNET_CHECK_VERSION(1.2.3) would return TRUE if the version is 1.2.5, and FALSE if 1.1.0. This can be used in build tests.

`major` : | Major version number
`minor` : | Minor version number
`micro` : | Micro version number

### gnet_init ()

    void        gnet_init                       (void);

Initializes the GNet library. This should be called at the beginning of any GNet program and before any call to `gtk_init()`.