# Dpkg::BuildAPI - handle build API versions - perldoc - [phpMan]

## NAME
    [Dpkg::BuildAPI](https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3ABuildAPI/markdown) - handle build API versions

## DESCRIPTION
    The [Dpkg::BuildAPI](https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3ABuildAPI/markdown) module provides functions to fetch the current dpkg build API level.

    Note: This is a private module, its API can change at any time.

## FUNCTIONS
    $level = get_build_api([$ctrl])
        Get the build API level, from the environment variable DPKG_BUILD_API, or if not defined and
        a $ctrl [Dpkg::Control::Info](https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AControl%3A%3AInfo/markdown) object passed as an argument, from its build dependency fields.
        If no $ctrl object gets passed the previous value obtained is returned.

### reset_build_api
        Reset the cached build API level.

## CHANGES
### Version 0.xx
    This is a private module.

