diff options
| author | Michael Biebl <biebl@debian.org> | 2022-01-13 22:30:39 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-01-13 22:30:39 +0100 |
| commit | 88c227d90a6b7b388c5c85d72802a0ca8f05ed5c (patch) | |
| tree | 71f32df6617802270e8a78574bd8e1637dc532f4 /src/libnm-glib-aux/nm-io-utils.h | |
| parent | e74c568b07b50b97873fb4ee1d776dedefbd54d6 (diff) | |
New upstream version 1.34.0 upstream/1.34.0
Diffstat (limited to 'src/libnm-glib-aux/nm-io-utils.h')
| -rw-r--r-- | src/libnm-glib-aux/nm-io-utils.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libnm-glib-aux/nm-io-utils.h b/src/libnm-glib-aux/nm-io-utils.h index 31ff6d05..479d0e51 100644 --- a/src/libnm-glib-aux/nm-io-utils.h +++ b/src/libnm-glib-aux/nm-io-utils.h @@ -60,4 +60,21 @@ void nm_g_subprocess_terminate_in_background(GSubprocess *subprocess, int timeou char **nm_utils_find_mkstemp_files(const char *dirname, const char *filename); +static inline gboolean +nm_io_sockaddr_un_path_is_abstract(const char *path, const char **out_path) +{ + if (path && path[0] == '@') { + NM_SET_OUT(out_path, &path[1]); + return TRUE; + } + NM_SET_OUT(out_path, path); + return FALSE; +} + +struct sockaddr_un; + +int nm_io_sockaddr_un_set(struct sockaddr_un *ret, NMOptionBool is_abstract, const char *path); + +int nm_sd_notify(const char *state); + #endif /* __NM_IO_UTILS_H__ */ |