|
Eris Linux A.P.I. 0.1
API to access Eris Linux system from a custom container
|
Functions to access Software Bill of Materials. More...
Functions | |
| int | eris_get_list_of_packages (char *buffer, size_t size) |
| Get the list of Eris Linux installed packages. | |
| int | eris_get_package_recipe (const char *name, char *buffer, size_t size) |
| Get the name of the recipe used to build a package. | |
| int | eris_get_package_version (const char *name, char *buffer, size_t size) |
| Get the version of a packages. | |
| int | eris_get_package_licenses (const char *name, char *buffer, size_t size) |
| Get the licenses concerning a package. | |
| int | eris_get_list_of_licenses (char *buffer, size_t size) |
| Get the list of the licenses used by installed packages. | |
| int | eris_get_license_text (const char *name, char *buffer, size_t size) |
| Get the text of a license. | |
Functions to access Software Bill of Materials.
| int eris_get_license_text | ( | const char * | name, |
| char * | buffer, | ||
| size_t | size ) |
Get the text of a license.
| name | The name of the license. |
| buffer | The buffer to fill with the text of the license. |
| size | The size of the buffer. |
This function fills the buffer with the text of the given license.
Some license texts extend to 350 Kb. Therefore we recommend providing a quite large buffer (512Kb for example).
| int eris_get_list_of_licenses | ( | char * | buffer, |
| size_t | size ) |
Get the list of the licenses used by installed packages.
| buffer | The buffer to fill with the list of licenses. |
| size | The size of the buffer. |
This function fills the buffer with a space-separated list of the licenses used by the packages embedde din Eris Linux system (not in the containers).
We suggest using a 1Kb sized buffer to ensure the list fits.
| int eris_get_list_of_packages | ( | char * | buffer, |
| size_t | size ) |
Get the list of Eris Linux installed packages.
| buffer | The buffer to fill with the list of packages. |
| size | The size of the buffer. |
This function fills the buffer with a space-separated list of packages embedded in Eris Linux system (but not in containers).
The system packages are installed during the production of the system and cannot be modified further.
We suggest using a 4Kb sized buffer to ensure the list fits.
| int eris_get_package_licenses | ( | const char * | name, |
| char * | buffer, | ||
| size_t | size ) |
Get the licenses concerning a package.
| name | The name of the package extracted from the result of eris_list_packages. |
| buffer | The buffer to fill with the details of the licenses. |
| size | The size of the buffer. |
Some packages contain files coming from multiple sources. These files may be released under different licenses. Sometimes, the author of a package allows the user to choose from several licenses for its usage.
This function populates the buffer with the logical combination of applicable licenses. Most of the time only one license name will appear.
| int eris_get_package_recipe | ( | const char * | name, |
| char * | buffer, | ||
| size_t | size ) |
Get the name of the recipe used to build a package.
| name | The name of the package extracted from the result of eris_list_packages. |
| buffer | The buffer to fill with the recipe name. |
| size | The size of the buffer. |
This function fills the buffer with the name of the recipe used to build the package.
A small buffer of 32 bytes, for example, will generally be sufficient.
| int eris_get_package_version | ( | const char * | name, |
| char * | buffer, | ||
| size_t | size ) |
Get the version of a packages.
| name | The name of the package extracted from the result of eris_list_packages. |
| buffer | The buffer to fill with the version of the package. |
| size | The size of the buffer. |
This function fills the buffer with the version of the package used to build Eris Linux system.
A small buffer of 32 bytes, for example, will generally be sufficient.