summaryrefslogtreecommitdiff
path: root/shared/nm-utils/nm-enum-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* shared: use value infos in _nm_utils_enum_to_str_fullBeniamino Galvani2018-04-131-10/+37
|
* shared: cast from/to argument to unsigned for GFlags in ↵Thomas Haller2017-04-271-1/+1
| | | | _nm_utils_enum_get_values()
* libnm: move public nm_utils_enum_*() functions back to libnm-coreThomas Haller2017-04-051-60/+2
| | | | | | | | | | | | | | Commit a8730c51c8915d7cd4209c0420734bf446b902d3 moved the enum utils from libnm-core to shared/nm-utils. However, three of those functions are part of public API in libnm. So, when statically linking against "shared/nm-utils/nm-enum-utils.c" and dynamically linking against libnm.so, those symbols are present twice and cause a linker failure. Fix that by moving the public API back to libnm-core. Fixes: a8730c51c8915d7cd4209c0420734bf446b902d3
* utils: add _nm_utils_enum_from_str_full() to support aliasesThomas Haller2017-03-301-4/+39
|
* libnm: move enum utils to new shared file shared/nm-utils/nm-enum-utils.hThomas Haller2017-03-301-0/+311
libnm contains the public function nm_utils_enum_from_str() et al. The function is not flexible enough for nmcli's usecase. So, I would need another public function like nm_utils_enum_from_str_full() that has an extended API. That was already required previously for ifcfg-rh writer, but in that case I could just add it as internal API as libnm-core is linked statically with NetworkManager. I don't want to commit to a public API for an utility function. So move the code instead to the shared directory, so that nmcli may link statically against it and use the internal API.