NetworkManager/clients/cloud-setup
Thomas Haller cd0863a339 all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop()
and _nm_utils_inet6_ntop() instead of nm_utils_inet6_ntop().

nm_utils_inet4_ntop()/nm_utils_inet6_ntop() are public API of libnm.
For one, that means they are only available in code that links with
libnm/libnm-core. But such basic helpers should be available everywhere.

Also, they accept NULL as destination buffers. We keep that behavior
for potential libnm users, but internally we never want to use the
static buffers. This patch needs to take care that there are no callers
of _nm_utils_inet[46]_ntop() that pass NULL buffers.

Also, _nm_utils_inet[46]_ntop() are inline functions and the compiler
can get rid of them.

We should consistently use the same variant of the helper. The only
downside is that the "good" name is already taken. The leading
underscore is rather ugly and inconsistent.

Also, with our internal variants we can use "static array indices in
function parameter declarations" next. Thereby the compiler helps
to ensure that the provided buffers are of the right size.
2020-01-28 11:17:41 +01:00
..
90-nm-cloud-setup.sh cloud-setup: let dispatcher script run tool only if service is enabled 2019-12-03 16:18:33 +01:00
main.c all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop() 2020-01-28 11:17:41 +01:00
meson.build cloud-setup: reuse nmc_client_new_waitsync() to create NMClient instance 2019-12-10 09:17:17 +01:00
nm-cloud-setup-utils.c all: rename time related function to spell out nsec/usec/msec/sec 2019-12-13 16:54:40 +01:00
nm-cloud-setup-utils.h cloud-setup/trivial: rename timeout_ms to timeout_msec 2019-12-13 16:54:40 +01:00
nm-cloud-setup.service.in cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00
nm-cloud-setup.timer cloud-setup: add tool for automatic IP configuration in cloud 2019-11-28 19:52:18 +01:00
nm-http-client.c all: use nm_g_unix_fd_source_new() instead of g_unix_fd_source_new() 2020-01-13 15:46:04 +01:00
nm-http-client.h cloud-setup/trivial: rename timeout_ms to timeout_msec 2019-12-13 16:54:40 +01:00
nmcs-provider-ec2.c cloud-setup: mark environment variables that are supported configuration 2019-12-03 16:18:33 +01:00
nmcs-provider-ec2.h cloud-setup: add tool for automatic IP configuration in cloud 2019-11-28 19:52:18 +01:00
nmcs-provider.c cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00
nmcs-provider.h cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00