diff options
Diffstat (limited to 'src/os/os.h')
-rw-r--r-- | src/os/os.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/os.h b/src/os/os.h index 1e874c29a5..8456f87473 100644 --- a/src/os/os.h +++ b/src/os/os.h @@ -87,6 +87,13 @@ char *os_getenvname_at_index(size_t index); /// /// @return the process ID. long os_get_pid(void); + +/// Get the hostname of the machine runing Neovim. +/// +/// @param hostname Buffer to store the hostname. +/// @param len Length of `hostname`. +void os_get_hostname(char *hostname, size_t len); + int os_get_usernames(garray_T *usernames); int os_get_user_name(char *s, size_t len); int os_get_uname(uid_t uid, char *s, size_t len); |