## gstpluginsbaseversion

gstpluginsbaseversion — GStreamer gst-plugins-base libraries version macros.

## Synopsis

    #include <gst/pbutils/gstpluginsbaseversion.h>

    #define             GST_PLUGINS_BASE_VERSION_MAJOR
    #define             GST_PLUGINS_BASE_VERSION_MINOR
    #define             GST_PLUGINS_BASE_VERSION_MICRO
    #define             GST_PLUGINS_BASE_VERSION_NANO
    #define             GST_CHECK_PLUGINS_BASE_VERSION      (major,
                                                             minor,
                                                             micro)
    void                gst_plugins_base_version            (guint *major,
                                                             guint *minor,
                                                             guint *micro,
                                                             guint *nano);
    gchar *             gst_plugins_base_version_string     (void);

## Description

Use the GST_PLUGINS_BASE_VERSION_* macros e.g. to check what version of gst-plugins-base you are building against, and `gst_plugins_base_version()` if you need to check at runtime what version of the gst-plugins-base libraries are being used / you are currently linked against.

The version macros get defined by including <gst/pbutils/pbutils.h>.

## Details

### GST_PLUGINS_BASE_VERSION_MAJOR

    #define GST_PLUGINS_BASE_VERSION_MAJOR (0)

The major version of GStreamer's gst-plugins-base libraries at compile time.

Since 0.10.31

### GST_PLUGINS_BASE_VERSION_MINOR

    #define GST_PLUGINS_BASE_VERSION_MINOR (10)

The minor version of GStreamer's gst-plugins-base libraries at compile time.

Since 0.10.31

### GST_PLUGINS_BASE_VERSION_MICRO

    #define GST_PLUGINS_BASE_VERSION_MICRO (36)

The micro version of GStreamer's gst-plugins-base libraries at compile time.

Since 0.10.31

### GST_PLUGINS_BASE_VERSION_NANO

    #define GST_PLUGINS_BASE_VERSION_NANO (0)

The nano version of GStreamer's gst-plugins-base libraries at compile time. Actual releases have 0, GIT versions have 1, prerelease versions have 2-...

Since 0.10.31

### GST_CHECK_PLUGINS_BASE_VERSION()

    #define             GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro)

### gst_plugins_base_version ()

    void                gst_plugins_base_version            (guint *major,
                                                             guint *minor,
                                                             guint *micro,
                                                             guint *nano);

Gets the version number of the GStreamer Plugins Base libraries.

`major` : | pointer to a guint to store the major version number, or `NULL`. [out]
`minor` : | pointer to a guint to store the minor version number, or `NULL`. [out]
`micro` : | pointer to a guint to store the micro version number, or `NULL`. [out]
`nano` : | pointer to a guint to store the nano version number, or `NULL`. [out]

Since 0.10.31

### gst_plugins_base_version_string ()

    gchar *             gst_plugins_base_version_string     (void);

This function returns a string that is useful for describing this version of GStreamer's gst-plugins-base libraries to the outside world: user agent strings, logging, about dialogs ...

Returns : | a newly allocated string describing this version of gst-plugins-base

Since 0.10.31